mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
Update split candidate correctly when interference cache is full.
No test case, spotted by inspection. llvm-svn: 143407
This commit is contained in:
parent
dc05741b6e
commit
7b1107fe0e
@ -1118,6 +1118,8 @@ unsigned RAGreedy::tryRegionSplit(LiveInterval &VirtReg, AllocationOrder &Order,
|
||||
}
|
||||
--NumCands;
|
||||
GlobalCand[Worst] = GlobalCand[NumCands];
|
||||
if (BestCand == NumCands)
|
||||
BestCand = Worst;
|
||||
}
|
||||
|
||||
if (GlobalCand.size() <= NumCands)
|
||||
|
Loading…
Reference in New Issue
Block a user