diff options
author | Dale Johannesen <dalej@apple.com> | 2010-05-01 00:41:15 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2010-05-01 00:41:15 +0000 |
commit | d65a0859aac6ec84155cdd63ef883e21762430f6 (patch) | |
tree | c1b9ee7cbfec1aafa453f2cb7d76ca7831b747c6 | |
parent | 1cee581edc39c1c21f28ef723046e7ee53cd9549 (diff) | |
download | external_llvm-d65a0859aac6ec84155cdd63ef883e21762430f6.tar.gz external_llvm-d65a0859aac6ec84155cdd63ef883e21762430f6.tar.bz2 external_llvm-d65a0859aac6ec84155cdd63ef883e21762430f6.zip |
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
-rw-r--r-- | lib/CodeGen/StackSlotColoring.cpp | 3 |
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); } } |