Make 'fold' statistic's description the same in both allocators.
authorAlkis Evlogimenos <alkis@evlogimenos.com>
Sat, 21 Feb 2004 18:07:33 +0000 (18:07 +0000)
committerAlkis Evlogimenos <alkis@evlogimenos.com>
Sat, 21 Feb 2004 18:07:33 +0000 (18:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11687 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/LiveIntervalAnalysis.cpp
lib/CodeGen/RegAllocLocal.cpp

index f606d260d6bfa29105f2024c5fcc0e81791b1059..00e366fbb307e3e0955025a3f9125a5c6123729f 100644 (file)
@@ -54,7 +54,7 @@ namespace {
     ("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",
index 188b3b341708753a8480abd0c6a36c8e7c6b6785..ee9e80db95baac67c2a93c8595db2e97505946e2 100644 (file)
@@ -30,7 +30,8 @@ using namespace llvm;
 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 @@ MachineInstr *RA::reloadVirtReg(MachineBasicBlock &MBB, MachineInstr *MI,
     // 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);