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/BranchFolding.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/BranchFolding.cpp')
-rw-r--r-- | llvm/lib/CodeGen/BranchFolding.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/BranchFolding.cpp b/llvm/lib/CodeGen/BranchFolding.cpp index f8cc3b3999e..bf0ea5a1252 100644 --- a/llvm/lib/CodeGen/BranchFolding.cpp +++ b/llvm/lib/CodeGen/BranchFolding.cpp @@ -135,8 +135,8 @@ bool BranchFolder::OptimizeImpDefsBlock(MachineBasicBlock *MBB) { if (!I->isImplicitDef()) break; unsigned Reg = I->getOperand(0).getReg(); - ImpDefRegs.insert(Reg); - for (MCSubRegIterator SubRegs(Reg, TRI); SubRegs.isValid(); ++SubRegs) + for (MCSubRegIterator SubRegs(Reg, TRI, /*IncludeSelf=*/true); + SubRegs.isValid(); ++SubRegs) ImpDefRegs.insert(*SubRegs); ++I; } |