summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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