summaryrefslogtreecommitdiff
path: root/lib/CodeGen/DeadMachineInstructionElim.cpp
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2013-05-22 23:17:36 +0000
committerChad Rosier <mcrosier@apple.com>2013-05-22 23:17:36 +0000
commit62c320a755ac27ac2b7f64e927892249e0f486e0 (patch)
tree470e68c2515fe82ee0d10c20cf5490d0343de77c /lib/CodeGen/DeadMachineInstructionElim.cpp
parentb018bab0b85c7b77ab7111946ea4b82bb6153a5c (diff)
downloadllvm-62c320a755ac27ac2b7f64e927892249e0f486e0.tar.gz
llvm-62c320a755ac27ac2b7f64e927892249e0f486e0.tar.bz2
llvm-62c320a755ac27ac2b7f64e927892249e0f486e0.tar.xz
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
Diffstat (limited to 'lib/CodeGen/DeadMachineInstructionElim.cpp')
-rw-r--r--lib/CodeGen/DeadMachineInstructionElim.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/DeadMachineInstructionElim.cpp b/lib/CodeGen/DeadMachineInstructionElim.cpp
index a54217f5b2..5efe1ffe82 100644
--- a/lib/CodeGen/DeadMachineInstructionElim.cpp
+++ b/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()) {