forked from OSchip/llvm-project
Make 'fold' statistic's description the same in both allocators.
llvm-svn: 11687
This commit is contained in:
parent
ab66f3d143
commit
334114bdf1
|
@ -54,7 +54,7 @@ namespace {
|
||||||
("liveintervals", "Number of identity moves eliminated after coalescing");
|
("liveintervals", "Number of identity moves eliminated after coalescing");
|
||||||
|
|
||||||
Statistic<> numFolded
|
Statistic<> numFolded
|
||||||
("liveintervals", "Number of register operands folded");
|
("liveintervals", "Number of loads/stores folded into instructions");
|
||||||
|
|
||||||
cl::opt<bool>
|
cl::opt<bool>
|
||||||
join("join-liveintervals",
|
join("join-liveintervals",
|
||||||
|
|
|
@ -30,7 +30,8 @@ using namespace llvm;
|
||||||
namespace {
|
namespace {
|
||||||
Statistic<> NumStores("ra-local", "Number of stores added");
|
Statistic<> NumStores("ra-local", "Number of stores added");
|
||||||
Statistic<> NumLoads ("ra-local", "Number of loads 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 {
|
class RA : public MachineFunctionPass {
|
||||||
const TargetMachine *TM;
|
const TargetMachine *TM;
|
||||||
MachineFunction *MF;
|
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.
|
// If we can fold this spill into this instruction, do so now.
|
||||||
MachineBasicBlock::iterator MII = MI;
|
MachineBasicBlock::iterator MII = MI;
|
||||||
if (RegInfo->foldMemoryOperand(MII, OpNum, FrameIndex)) {
|
if (RegInfo->foldMemoryOperand(MII, OpNum, FrameIndex)) {
|
||||||
++NumFused;
|
++NumFolded;
|
||||||
// Since we changed the address of MI, make sure to update live variables
|
// 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.
|
// to know that the new instruction has the properties of the old one.
|
||||||
LV->instructionChanged(MI, MII);
|
LV->instructionChanged(MI, MII);
|
||||||
|
|
Loading…
Reference in New Issue