summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-01-19 17:11:51 +0000
committerChris Lattner <sabre@nondot.org>2005-01-19 17:11:51 +0000
commit1cffa73f2a1726b82e53ec95f330ab3a07a712fd (patch)
tree06e90b33ab95c7b7e11829e3a6a4647d8bab819c /llvm/lib
parent00c436824fd4027799b3e6c344babd24b1d5861d (diff)
downloadbcm5719-llvm-1cffa73f2a1726b82e53ec95f330ab3a07a712fd.tar.gz
bcm5719-llvm-1cffa73f2a1726b82e53ec95f330ab3a07a712fd.zip
Just in case, handle something that is both a use and a def.
llvm-svn: 19696
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/LiveVariables.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveVariables.cpp b/llvm/lib/CodeGen/LiveVariables.cpp
index 291cc7934a4..80316102601 100644
--- a/llvm/lib/CodeGen/LiveVariables.cpp
+++ b/llvm/lib/CodeGen/LiveVariables.cpp
@@ -310,7 +310,8 @@ void LiveVariables::instructionChanged(MachineInstr *OldMI,
// Update the defining instruction.
if (VI.DefInst == OldMI)
VI.DefInst = NewMI;
- } else if (MO.isUse()) {
+ }
+ if (MO.isUse()) {
// If this is a kill of the value, update the VI kills list.
if (VI.removeKill(OldMI))
VI.Kills.push_back(NewMI); // Yes, there was a kill of it
OpenPOWER on IntegriCloud