mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 23:17:16 +00:00
Simplify logic now that r182490 is in place. No functional change intended.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182531 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -154,11 +154,11 @@ bool DeadMachineInstructionElim::runOnMachineFunction(MachineFunction &MF) {
|
||||
if (MO.isReg() && MO.isDef()) {
|
||||
unsigned Reg = MO.getReg();
|
||||
if (TargetRegisterInfo::isPhysicalRegister(Reg)) {
|
||||
LivePhysRegs.reset(Reg);
|
||||
// Check the subreg set, not the alias set, because a def
|
||||
// of a super-register may still be partially live after
|
||||
// this def.
|
||||
for (MCSubRegIterator SR(Reg, TRI); SR.isValid(); ++SR)
|
||||
for (MCSubRegIterator SR(Reg, TRI,/*IncludeSelf=*/true);
|
||||
SR.isValid(); ++SR)
|
||||
LivePhysRegs.reset(*SR);
|
||||
}
|
||||
} else if (MO.isRegMask()) {
|
||||
|
||||
Reference in New Issue
Block a user