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

Alkis Evlogimenos alkis at niobe.cs.uiuc.edu
Sat Feb 21 12:30:19 PST 2004


Changes in directory llvm/lib/CodeGen:

RegAllocLocal.cpp updated: 1.53 -> 1.54
LiveIntervals.cpp updated: 1.58 -> 1.59

---
Log message:

Make 'fold' statistic's description the same in both allocators.


---
Diffs of the changes:  (+4 -3)

Index: llvm/lib/CodeGen/RegAllocLocal.cpp
diff -u llvm/lib/CodeGen/RegAllocLocal.cpp:1.53 llvm/lib/CodeGen/RegAllocLocal.cpp:1.54
--- llvm/lib/CodeGen/RegAllocLocal.cpp:1.53	Thu Feb 19 12:34:02 2004
+++ llvm/lib/CodeGen/RegAllocLocal.cpp	Sat Feb 21 12:07:33 2004
@@ -30,7 +30,8 @@
 namespace {
   Statistic<> NumStores("ra-local", "Number of stores added");
   Statistic<> NumLoads ("ra-local", "Number of loads added");
-  Statistic<> NumFused ("ra-local", "Number of reloads fused into instructions");
+  Statistic<> NumFolded("ra-local", "Number of loads/stores folded into "
+                        "instructions");
   class RA : public MachineFunctionPass {
     const TargetMachine *TM;
     MachineFunction *MF;
@@ -495,7 +496,7 @@
     // If we can fold this spill into this instruction, do so now.
     MachineBasicBlock::iterator MII = MI;
     if (RegInfo->foldMemoryOperand(MII, OpNum, FrameIndex)) {
-      ++NumFused;
+      ++NumFolded;
       // Since we changed the address of MI, make sure to update live variables
       // to know that the new instruction has the properties of the old one.
       LV->instructionChanged(MI, MII);


Index: llvm/lib/CodeGen/LiveIntervals.cpp
diff -u llvm/lib/CodeGen/LiveIntervals.cpp:1.58 llvm/lib/CodeGen/LiveIntervals.cpp:1.59
--- llvm/lib/CodeGen/LiveIntervals.cpp:1.58	Fri Feb 20 14:53:26 2004
+++ llvm/lib/CodeGen/LiveIntervals.cpp	Sat Feb 21 12:07:33 2004
@@ -54,7 +54,7 @@
     ("liveintervals", "Number of identity moves eliminated after coalescing");
 
     Statistic<> numFolded
-    ("liveintervals", "Number of register operands folded");
+    ("liveintervals", "Number of loads/stores folded into instructions");
 
     cl::opt<bool>
     join("join-liveintervals",





More information about the llvm-commits mailing list