summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-04-26 08:24:22 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-04-26 08:24:22 +0000
commited23a1387e4d11fb5a36b2c36a0c8e960e1f55da (patch)
tree0dbfd293b005d7ecd50689c0ddce2e37e5da65ac /llvm/lib/CodeGen
parente6e364c1986e54076fab080ec2f8cec1da8b7f7b (diff)
downloadbcm5719-llvm-ed23a1387e4d11fb5a36b2c36a0c8e960e1f55da.tar.gz
bcm5719-llvm-ed23a1387e4d11fb5a36b2c36a0c8e960e1f55da.zip
Minor bug.
llvm-svn: 36473
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/LiveVariables.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/LiveVariables.cpp b/llvm/lib/CodeGen/LiveVariables.cpp
index fcefe263db2..9c7f13d9b02 100644
--- a/llvm/lib/CodeGen/LiveVariables.cpp
+++ b/llvm/lib/CodeGen/LiveVariables.cpp
@@ -281,7 +281,7 @@ void LiveVariables::HandlePhysRegDef(unsigned Reg, MachineInstr *MI) {
// Add implicit use / kill to last use of a sub-register.
addRegisterKilled(Reg, PhysRegPartUse[Reg], true);
else
- addRegisterDead(Reg, LastRef, true);
+ addRegisterDead(Reg, LastRef);
}
PhysRegInfo[Reg] = MI;
PhysRegUsed[Reg] = false;
@@ -294,7 +294,7 @@ void LiveVariables::HandlePhysRegDef(unsigned Reg, MachineInstr *MI) {
addRegisterKilled(SubReg, LastRef);
else if (PhysRegPartUse[SubReg])
// Add implicit use / kill to last use of a sub-register.
- addRegisterKilled(SubReg, PhysRegPartUse[SubReg]);
+ addRegisterKilled(SubReg, PhysRegPartUse[SubReg], true);
else
addRegisterDead(SubReg, LastRef);
}
OpenPOWER on IntegriCloud