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:
Dale Johannesen 2010-05-01 00:41:15 +00:00
parent 0b66eb38c7
commit 3dca8f3da3
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}
}