summaryrefslogtreecommitdiff
path: root/lib/CodeGen/StackSlotColoring.cpp
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
commite576f51e664821c69985d5db7e0fb109dd1cd137 (patch)
treec1b9ee7cbfec1aafa453f2cb7d76ca7831b747c6 /lib/CodeGen/StackSlotColoring.cpp
parent1b79a2ff547a5ead0eef933bb02f51b3a2f4cc1c (diff)
downloadllvm-e576f51e664821c69985d5db7e0fb109dd1cd137.tar.gz
llvm-e576f51e664821c69985d5db7e0fb109dd1cd137.tar.bz2
llvm-e576f51e664821c69985d5db7e0fb109dd1cd137.tar.xz
Fix a bug where debug info affected stack slot coloring.
Seen in SingleSrc/Benchmarks/Misc/flops with TEST=optllcdbg. 7929951. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102819 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/StackSlotColoring.cpp')
-rw-r--r--lib/CodeGen/StackSlotColoring.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/StackSlotColoring.cpp b/lib/CodeGen/StackSlotColoring.cpp
index 12d38f0a76..42dfd7fbcb 100644
--- a/lib/CodeGen/StackSlotColoring.cpp
+++ b/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);
}
}