mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Remove RegisterClassInfo::isReserved() and isAllocatable().
Clients can use the equivalent functions in MRI. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165990 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -635,7 +635,7 @@ bool AggressiveAntiDepBreaker::FindSuitableFreeRegisters(
|
||||
--R;
|
||||
const unsigned NewSuperReg = Order[R];
|
||||
// Don't consider non-allocatable registers
|
||||
if (!RegClassInfo.isAllocatable(NewSuperReg)) continue;
|
||||
if (!MRI.isAllocatable(NewSuperReg)) continue;
|
||||
// Don't replace a register with itself.
|
||||
if (NewSuperReg == SuperReg) continue;
|
||||
|
||||
@@ -818,7 +818,7 @@ unsigned AggressiveAntiDepBreaker::BreakAntiDependencies(
|
||||
DEBUG(dbgs() << "\tAntidep reg: " << TRI->getName(AntiDepReg));
|
||||
assert(AntiDepReg != 0 && "Anti-dependence on reg0?");
|
||||
|
||||
if (!RegClassInfo.isAllocatable(AntiDepReg)) {
|
||||
if (!MRI.isAllocatable(AntiDepReg)) {
|
||||
// Don't break anti-dependencies on non-allocatable registers.
|
||||
DEBUG(dbgs() << " (non-allocatable)\n");
|
||||
continue;
|
||||
|
Reference in New Issue
Block a user