Update split candidate correctly when interference cache is full.
No test case, spotted by inspection. llvm-svn: 143407
This commit is contained in:
parent
d28ddbff8d
commit
559d4dcc16
@ -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…
x
Reference in New Issue
Block a user