mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 03:23:01 +02:00
SplitKit: Fix partially live subreg splitting
Fix thinko/typo in subreg aware liverange splitting logic. I'm not sure how to write a proper testcase for this. The original problem only happens on an out-of-tree target. Forcing subreg enabled targets to spill and split in a predictable way is near impossible. llvm-svn: 305228
This commit is contained in:
parent
54103de7c1
commit
b21f8848ef
@ -569,8 +569,7 @@ SlotIndex SplitEditor::buildCopy(unsigned FromReg, unsigned ToReg,
|
||||
|
||||
// Greedy heuristic: Keep iterating keeping the best covering subreg index
|
||||
// each time.
|
||||
LaneBitmask LanesLeft =
|
||||
LaneMask & ~(TRI.getSubRegIndexLaneMask(BestCover));
|
||||
LaneBitmask LanesLeft = LaneMask & ~(TRI.getSubRegIndexLaneMask(BestIdx));
|
||||
while (LanesLeft.any()) {
|
||||
unsigned BestIdx = 0;
|
||||
int BestCover = INT_MIN;
|
||||
|
Loading…
Reference in New Issue
Block a user