mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-10 02:36:06 +00:00
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
This commit is contained in:
parent
1b79a2ff54
commit
e576f51e66
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user