diff options
author | Bob Wilson <bob.wilson@apple.com> | 2009-09-01 22:19:00 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@apple.com> | 2009-09-01 22:19:00 +0000 |
commit | 432d176192c6a1707a9f714ea00ea500f1d9a6ee (patch) | |
tree | b5c20e73c2cceab72ce77fef3e8e72cddf3a711c /lib/CodeGen/TwoAddressInstructionPass.cpp | |
parent | 7cc00874d5de3b00205dcce03e05205916697d38 (diff) | |
download | external_llvm-432d176192c6a1707a9f714ea00ea500f1d9a6ee.zip external_llvm-432d176192c6a1707a9f714ea00ea500f1d9a6ee.tar.gz external_llvm-432d176192c6a1707a9f714ea00ea500f1d9a6ee.tar.bz2 |
Move use of LV inside condition that guards for null LV.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80731 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/TwoAddressInstructionPass.cpp')
-rw-r--r-- | lib/CodeGen/TwoAddressInstructionPass.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/CodeGen/TwoAddressInstructionPass.cpp b/lib/CodeGen/TwoAddressInstructionPass.cpp index d753969..b031004 100644 --- a/lib/CodeGen/TwoAddressInstructionPass.cpp +++ b/lib/CodeGen/TwoAddressInstructionPass.cpp @@ -865,12 +865,12 @@ bool TwoAddressInstructionPass::runOnMachineFunction(MachineFunction &MF) { LV->addVirtualRegisterKilled(Kill, NewKill); } } - } - // We're really going to nuke the old inst. If regB was marked - // as a kill we need to update its Kills list. - if (mi->getOperand(si).isKill()) - LV->removeVirtualRegisterKilled(regB, mi); + // We're really going to nuke the old inst. If regB was marked + // as a kill we need to update its Kills list. + if (mi->getOperand(si).isKill()) + LV->removeVirtualRegisterKilled(regB, mi); + } mbbi->erase(mi); // Nuke the old inst. mi = nmi; |