mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-31 09:32:11 +00:00
Tweak to ignoring reserved regs. The allocator was occasionally still looking
at them since they'd end up in the register weights list. Tell it to stop doing that. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112756 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
97511ceffa
commit
188da252ab
@ -1147,9 +1147,11 @@ void RALinScan::assignRegOrStackSlotAtInterval(LiveInterval* cur) {
|
||||
e = RC->allocation_order_end(*mf_); i != e; ++i) {
|
||||
unsigned reg = *i;
|
||||
float regWeight = SpillWeights[reg];
|
||||
// Don't even consider reserved regs.
|
||||
if (reservedRegs_.test(reg))
|
||||
continue;
|
||||
// Skip recently allocated registers and reserved registers.
|
||||
if (minWeight > regWeight && !isRecentlyUsed(reg) &&
|
||||
!reservedRegs_.test(reg))
|
||||
if (minWeight > regWeight && !isRecentlyUsed(reg))
|
||||
Found = true;
|
||||
RegsWeights.push_back(std::make_pair(reg, regWeight));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user