diff options
author | Chris Lattner <sabre@nondot.org> | 2005-01-19 17:11:51 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-01-19 17:11:51 +0000 |
commit | 2a6e163edc2f5c81ad1f4c527c354b1a727676b7 (patch) | |
tree | d0f704a75c10d64dcfc836e20c705547e403a22a /lib/CodeGen/LiveVariables.cpp | |
parent | d45be36965470710eb18662fc716243ea384bf2f (diff) |
Just in case, handle something that is both a use and a def.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19696 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveVariables.cpp')
-rw-r--r-- | lib/CodeGen/LiveVariables.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/LiveVariables.cpp b/lib/CodeGen/LiveVariables.cpp index 291cc7934a..8031610260 100644 --- a/lib/CodeGen/LiveVariables.cpp +++ b/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 |