mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 12:50:30 +00:00
Oops, didn't mean to commit that.
Spills should be hoisted out of loops, but we don't want to hoist them to dominating blocks at the same loop depth. That could cause the spills to be executed more often. llvm-svn: 134782
This commit is contained in:
parent
8971e4c595
commit
aef38c4f35
@ -344,7 +344,7 @@ MachineInstr *InlineSpiller::traceSiblingValue(unsigned UseReg, VNInfo *UseVNI,
|
||||
// This is a valid spill location dominating UseVNI.
|
||||
// Prefer to spill at a smaller loop depth.
|
||||
unsigned Depth = Loops.getLoopDepth(MBB);
|
||||
if (Depth <= SpillDepth) {
|
||||
if (Depth < SpillDepth) {
|
||||
DEBUG(dbgs() << " spill depth " << Depth << ": " << PrintReg(Reg)
|
||||
<< ':' << VNI->id << '@' << VNI->def << '\n');
|
||||
SVI.SpillReg = Reg;
|
||||
|
Loading…
Reference in New Issue
Block a user