[llvm-commits] CVS: llvm/lib/CodeGen/PHIElimination.cpp
Evan Cheng
evan.cheng at apple.com
Tue Apr 17 17:36:28 PDT 2007
Changes in directory llvm/lib/CodeGen:
PHIElimination.cpp updated: 1.55 -> 1.56
---
Log message:
Increment use count of new virtuals created during PHI elimination.
---
Diffs of the changes: (+3 -0)
PHIElimination.cpp | 3 +++
1 files changed, 3 insertions(+)
Index: llvm/lib/CodeGen/PHIElimination.cpp
diff -u llvm/lib/CodeGen/PHIElimination.cpp:1.55 llvm/lib/CodeGen/PHIElimination.cpp:1.56
--- llvm/lib/CodeGen/PHIElimination.cpp:1.55 Sun Mar 18 04:02:31 2007
+++ llvm/lib/CodeGen/PHIElimination.cpp Tue Apr 17 19:36:11 2007
@@ -138,6 +138,9 @@
if (LV) {
MachineInstr *PHICopy = prior(AfterPHIsIt);
+ // Increment use count of the newly created virtual register.
+ LV->getVarInfo(IncomingReg).NumUses++;
+
// Add information to LiveVariables to know that the incoming value is
// killed. Note that because the value is defined in several places (once
// each for each incoming block), the "def" block and instruction fields
More information about the llvm-commits
mailing list