summaryrefslogtreecommitdiff
path: root/lib/CodeGen/TwoAddressInstructionPass.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-07-19 06:55:21 +0000
committerChris Lattner <sabre@nondot.org>2004-07-19 06:55:21 +0000
commit472405e0dc05f6fb8c09af00713ff893fff25b94 (patch)
treea4c839734683c4d85245220e65123f3a73f8b015 /lib/CodeGen/TwoAddressInstructionPass.cpp
parent73d4adfb1e5d6c0ce834b331e6099b14d3341dd7 (diff)
downloadllvm-472405e0dc05f6fb8c09af00713ff893fff25b94.tar.gz
llvm-472405e0dc05f6fb8c09af00713ff893fff25b94.tar.bz2
llvm-472405e0dc05f6fb8c09af00713ff893fff25b94.tar.xz
Simplify the interface to LiveVariables::addVirtualRegister(Killed|Dead)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14997 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/TwoAddressInstructionPass.cpp')
-rw-r--r--lib/CodeGen/TwoAddressInstructionPass.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/TwoAddressInstructionPass.cpp b/lib/CodeGen/TwoAddressInstructionPass.cpp
index 2190f2162e..f2815eecff 100644
--- a/lib/CodeGen/TwoAddressInstructionPass.cpp
+++ b/lib/CodeGen/TwoAddressInstructionPass.cpp
@@ -151,10 +151,10 @@ bool TwoAddressInstructionPass::runOnMachineFunction(MachineFunction &MF) {
// update live variables for regB
if (LV->removeVirtualRegisterKilled(regB, &*mbbi, mi))
- LV->addVirtualRegisterKilled(regB, &*mbbi, prevMi);
+ LV->addVirtualRegisterKilled(regB, prevMi);
if (LV->removeVirtualRegisterDead(regB, &*mbbi, mi))
- LV->addVirtualRegisterDead(regB, &*mbbi, prevMi);
+ LV->addVirtualRegisterDead(regB, prevMi);
}
// replace all occurences of regB with regA