summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2010-05-01 00:41:15 +0000
committerDale Johannesen <dalej@apple.com>2010-05-01 00:41:15 +0000
commit3dca8f3da327ba6b1bc35d2e764e4f0e264bacea (patch)
treef4017f40979318074e969d10be1dd4fa0b867695 /llvm/lib
parent0b66eb38c78129f48cc65bbe6867dfc67abae6df (diff)
downloadbcm5719-llvm-3dca8f3da327ba6b1bc35d2e764e4f0e264bacea.tar.gz
bcm5719-llvm-3dca8f3da327ba6b1bc35d2e764e4f0e264bacea.zip
Fix a bug where debug info affected stack slot coloring.
Seen in SingleSrc/Benchmarks/Misc/flops with TEST=optllcdbg. 7929951. llvm-svn: 102819
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/StackSlotColoring.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/StackSlotColoring.cpp b/llvm/lib/CodeGen/StackSlotColoring.cpp
index 12d38f0a76d..42dfd7fbcb0 100644
--- a/llvm/lib/CodeGen/StackSlotColoring.cpp
+++ b/llvm/lib/CodeGen/StackSlotColoring.cpp
@@ -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);
}
}
OpenPOWER on IntegriCloud