mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-29 10:25:12 +00:00
Obvious unnecessary loop removal. Follow through from previous checkin.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149398 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -775,9 +775,9 @@ void RAFast::addRetOperands(MachineBasicBlock *MBB) {
|
||||
continue;
|
||||
|
||||
unsigned OperReg = MO.getReg();
|
||||
for (const unsigned *AS = TRI->getOverlaps(Reg); *AS; ++AS) {
|
||||
if (OperReg != *AS)
|
||||
if (!TargetRegisterInfo::isPhysicalRegister(OperReg))
|
||||
continue;
|
||||
|
||||
if (OperReg == Reg || TRI->isSuperRegister(OperReg, Reg)) {
|
||||
// If the ret already has an operand for this physreg or a superset,
|
||||
// don't duplicate it. Set the kill flag if the value is defined.
|
||||
@@ -787,7 +787,6 @@ void RAFast::addRetOperands(MachineBasicBlock *MBB) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!Found)
|
||||
MI->addOperand(MachineOperand::CreateReg(Reg,
|
||||
false /*IsDef*/,
|
||||
|
Reference in New Issue
Block a user