summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorAlkis Evlogimenos <alkis@evlogimenos.com>2004-02-21 18:07:33 +0000
committerAlkis Evlogimenos <alkis@evlogimenos.com>2004-02-21 18:07:33 +0000
commit334114bdf10946d76afa77cfed09b661316e9f63 (patch)
tree33db33407e52ebb7a9d3fa5b3a616e2247e43c96 /llvm/lib/CodeGen
parentab66f3d1433c84d8cda1c307c0041fa97c5bc7e6 (diff)
downloadbcm5719-llvm-334114bdf10946d76afa77cfed09b661316e9f63.tar.gz
bcm5719-llvm-334114bdf10946d76afa77cfed09b661316e9f63.zip
Make 'fold' statistic's description the same in both allocators.
llvm-svn: 11687
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/LiveIntervals.cpp2
-rw-r--r--llvm/lib/CodeGen/RegAllocLocal.cpp5
2 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervals.cpp b/llvm/lib/CodeGen/LiveIntervals.cpp
index f606d260d6b..00e366fbb30 100644
--- a/llvm/lib/CodeGen/LiveIntervals.cpp
+++ b/llvm/lib/CodeGen/LiveIntervals.cpp
@@ -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",
diff --git a/llvm/lib/CodeGen/RegAllocLocal.cpp b/llvm/lib/CodeGen/RegAllocLocal.cpp
index 188b3b34170..ee9e80db95b 100644
--- a/llvm/lib/CodeGen/RegAllocLocal.cpp
+++ b/llvm/lib/CodeGen/RegAllocLocal.cpp
@@ -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);
OpenPOWER on IntegriCloud