mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
Switch all register list clients to the new MC*Iterator interface.
No functional change intended. Sorry for the churn. The iterator classes are supposed to help avoid giant commits like this one in the future. The TableGen-produced register lists are getting quite large, and it may be necessary to change the table representation. This makes it possible to do so without changing all clients (again). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157854 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -445,8 +445,8 @@ void MachineLICM::ProcessMI(MachineInstr *MI,
|
||||
}
|
||||
|
||||
if (MO.isImplicit()) {
|
||||
for (const uint16_t *AS = TRI->getOverlaps(Reg); *AS; ++AS)
|
||||
PhysRegClobbers.set(*AS);
|
||||
for (MCRegAliasIterator AI(Reg, TRI, true); AI.isValid(); ++AI)
|
||||
PhysRegClobbers.set(*AI);
|
||||
if (!MO.isDead())
|
||||
// Non-dead implicit def? This cannot be hoisted.
|
||||
RuledOut = true;
|
||||
@@ -465,7 +465,7 @@ void MachineLICM::ProcessMI(MachineInstr *MI,
|
||||
// If we have already seen another instruction that defines the same
|
||||
// register, then this is not safe. Two defs is indicated by setting a
|
||||
// PhysRegClobbers bit.
|
||||
for (const uint16_t *AS = TRI->getOverlaps(Reg); *AS; ++AS) {
|
||||
for (MCRegAliasIterator AS(Reg, TRI, true); AS.isValid(); ++AS) {
|
||||
if (PhysRegDefs.test(*AS))
|
||||
PhysRegClobbers.set(*AS);
|
||||
if (PhysRegClobbers.test(*AS))
|
||||
@@ -517,8 +517,8 @@ void MachineLICM::HoistRegionPostRA() {
|
||||
for (MachineBasicBlock::livein_iterator I = BB->livein_begin(),
|
||||
E = BB->livein_end(); I != E; ++I) {
|
||||
unsigned Reg = *I;
|
||||
for (const uint16_t *AS = TRI->getOverlaps(Reg); *AS; ++AS)
|
||||
PhysRegDefs.set(*AS);
|
||||
for (MCRegAliasIterator AI(Reg, TRI, true); AI.isValid(); ++AI)
|
||||
PhysRegDefs.set(*AI);
|
||||
}
|
||||
|
||||
SpeculationState = SpeculateUnknown;
|
||||
@@ -540,8 +540,8 @@ void MachineLICM::HoistRegionPostRA() {
|
||||
unsigned Reg = MO.getReg();
|
||||
if (!Reg)
|
||||
continue;
|
||||
for (const uint16_t *AS = TRI->getOverlaps(Reg); *AS; ++AS)
|
||||
TermRegs.set(*AS);
|
||||
for (MCRegAliasIterator AI(Reg, TRI, true); AI.isValid(); ++AI)
|
||||
TermRegs.set(*AI);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user