forked from OSchip/llvm-project
Fix a bug where debug info affected stack slot coloring.
Seen in SingleSrc/Benchmarks/Misc/flops with TEST=optllcdbg. 7929951. llvm-svn: 102819
This commit is contained in:
parent
0b66eb38c7
commit
3dca8f3da3
|
@ -182,7 +182,8 @@ void StackSlotColoring::ScanForSpillSlotRefs(MachineFunction &MF) {
|
|||
if (!LS->hasInterval(FI))
|
||||
continue;
|
||||
LiveInterval &li = LS->getInterval(FI);
|
||||
li.weight += LiveIntervals::getSpillWeight(false, true, loopDepth);
|
||||
if (!MI->isDebugValue())
|
||||
li.weight += LiveIntervals::getSpillWeight(false, true, loopDepth);
|
||||
SSRefs[FI].push_back(MI);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue