projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b79a2f
)
Fix a bug where debug info affected stack slot coloring.
author
Dale Johannesen
<dalej@apple.com>
Sat, 1 May 2010 00:41:15 +0000
(
00:41
+0000)
committer
Dale Johannesen
<dalej@apple.com>
Sat, 1 May 2010 00:41:15 +0000
(
00:41
+0000)
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
lib/CodeGen/StackSlotColoring.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/StackSlotColoring.cpp
b/lib/CodeGen/StackSlotColoring.cpp
index 12d38f0a76d0f5d6c6fab016047688301eeff2a5..42dfd7fbcb08c1be255700bbeaed772c321e00f4 100644
(file)
--- 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);
}
}