diff options
author | Chad Rosier <mcrosier@apple.com> | 2013-05-22 23:17:36 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2013-05-22 23:17:36 +0000 |
commit | abdb1d69ab9834bae2f049b78ad706b707e5e652 (patch) | |
tree | d713c32e2a6a25f4bb3e0979c6adfd1821942374 /llvm/lib/CodeGen/DeadMachineInstructionElim.cpp | |
parent | 62f80036be3806401adb059a92857d6a35bb87aa (diff) | |
download | bcm5719-llvm-abdb1d69ab9834bae2f049b78ad706b707e5e652.tar.gz bcm5719-llvm-abdb1d69ab9834bae2f049b78ad706b707e5e652.zip |
Simplify logic now that r182490 is in place. No functional change intended.
llvm-svn: 182531
Diffstat (limited to 'llvm/lib/CodeGen/DeadMachineInstructionElim.cpp')
-rw-r--r-- | llvm/lib/CodeGen/DeadMachineInstructionElim.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/DeadMachineInstructionElim.cpp b/llvm/lib/CodeGen/DeadMachineInstructionElim.cpp index a54217f5b2f..5efe1ffe820 100644 --- a/llvm/lib/CodeGen/DeadMachineInstructionElim.cpp +++ b/llvm/lib/CodeGen/DeadMachineInstructionElim.cpp @@ -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()) { |