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 | 1cffa73f2a1726b82e53ec95f330ab3a07a712fd (patch) | |
| tree | 06e90b33ab95c7b7e11829e3a6a4647d8bab819c /llvm/lib/CodeGen | |
| parent | 00c436824fd4027799b3e6c344babd24b1d5861d (diff) | |
| download | bcm5719-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/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/LiveVariables.cpp | 3 |
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 |

