[llvm-commits] CVS: llvm/lib/CodeGen/LiveVariables.cpp

Evan Cheng evan.cheng at apple.com
Tue Apr 17 13:22:31 PDT 2007



Changes in directory llvm/lib/CodeGen:

LiveVariables.cpp updated: 1.71 -> 1.72
---
Log message:

Keep track of number of uses within the function per virtual register.

---
Diffs of the changes:  (+1 -0)

 LiveVariables.cpp |    1 +
 1 files changed, 1 insertion(+)


Index: llvm/lib/CodeGen/LiveVariables.cpp
diff -u llvm/lib/CodeGen/LiveVariables.cpp:1.71 llvm/lib/CodeGen/LiveVariables.cpp:1.72
--- llvm/lib/CodeGen/LiveVariables.cpp:1.71	Sat Mar 17 04:29:54 2007
+++ llvm/lib/CodeGen/LiveVariables.cpp	Tue Apr 17 15:22:11 2007
@@ -141,6 +141,7 @@
   unsigned BBNum = MBB->getNumber();
 
   VRInfo.UsedBlocks[BBNum] = true;
+  VRInfo.NumUses++;
 
   // Check to see if this basic block is already a kill block...
   if (!VRInfo.Kills.empty() && VRInfo.Kills.back()->getParent() == MBB) {






More information about the llvm-commits mailing list