summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2009-09-01 22:19:00 +0000
committerBob Wilson <bob.wilson@apple.com>2009-09-01 22:19:00 +0000
commit71e77ea89b08d6b00e46924a40ef2e3e76612237 (patch)
treea786e3c5f7c974fbb74a5323c388b5cd408a4a77 /llvm
parent2a275102d38b4e888bf0e4b289ffe73b940f340a (diff)
downloadbcm5719-llvm-71e77ea89b08d6b00e46924a40ef2e3e76612237.tar.gz
bcm5719-llvm-71e77ea89b08d6b00e46924a40ef2e3e76612237.zip
Move use of LV inside condition that guards for null LV.
llvm-svn: 80731
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/CodeGen/TwoAddressInstructionPass.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp b/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
index d75396906e1..b0310048ec1 100644
--- a/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud