[llvm-commits] CVS: llvm/lib/CodeGen/LiveVariables.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Jan 19 09:12:03 PST 2005
Changes in directory llvm/lib/CodeGen:
LiveVariables.cpp updated: 1.46 -> 1.47
---
Log message:
Just in case, handle something that is both a use and a def.
---
Diffs of the changes: (+2 -1)
Index: llvm/lib/CodeGen/LiveVariables.cpp
diff -u llvm/lib/CodeGen/LiveVariables.cpp:1.46 llvm/lib/CodeGen/LiveVariables.cpp:1.47
--- llvm/lib/CodeGen/LiveVariables.cpp:1.46 Wed Jan 19 11:09:15 2005
+++ llvm/lib/CodeGen/LiveVariables.cpp Wed Jan 19 11:11:51 2005
@@ -310,7 +310,8 @@
// 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
More information about the llvm-commits
mailing list