mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
RegAllocFast: Rename statistic from NumCopies to NumCoalesced
The metric does not return the number of remaining (or inserted) copies but the number of copies that were coalesced. Pick a more descriptive name. llvm-svn: 346287
This commit is contained in:
parent
58e7365bdd
commit
f32d8f4914
@ -54,7 +54,7 @@ using namespace llvm;
|
||||
|
||||
STATISTIC(NumStores, "Number of stores added");
|
||||
STATISTIC(NumLoads , "Number of loads added");
|
||||
STATISTIC(NumCopies, "Number of copies coalesced");
|
||||
STATISTIC(NumCoalesced, "Number of copies coalesced");
|
||||
|
||||
static RegisterRegAlloc
|
||||
fastRegAlloc("fast", "fast register allocator", createFastRegisterAllocator);
|
||||
@ -1079,7 +1079,7 @@ void RegAllocFast::allocateBasicBlock(MachineBasicBlock &MBB) {
|
||||
// LiveVirtRegs might refer to the instrs.
|
||||
for (MachineInstr *MI : Coalesced)
|
||||
MBB.erase(MI);
|
||||
NumCopies += Coalesced.size();
|
||||
NumCoalesced += Coalesced.size();
|
||||
|
||||
LLVM_DEBUG(MBB.dump());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user