[llvm-commits] [llvm] r102819 - /llvm/trunk/lib/CodeGen/StackSlotColoring.cpp
Dale Johannesen
dalej at apple.com
Fri Apr 30 17:41:16 PDT 2010
Author: johannes
Date: Fri Apr 30 19:41:15 2010
New Revision: 102819
URL: http://llvm.org/viewvc/llvm-project?rev=102819&view=rev
Log:
Fix a bug where debug info affected stack slot coloring.
Seen in SingleSrc/Benchmarks/Misc/flops with TEST=optllcdbg.
7929951.
Modified:
llvm/trunk/lib/CodeGen/StackSlotColoring.cpp
Modified: llvm/trunk/lib/CodeGen/StackSlotColoring.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/StackSlotColoring.cpp?rev=102819&r1=102818&r2=102819&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/StackSlotColoring.cpp (original)
+++ llvm/trunk/lib/CodeGen/StackSlotColoring.cpp Fri Apr 30 19:41:15 2010
@@ -182,7 +182,8 @@
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);
}
}
More information about the llvm-commits
mailing list