Skip to content

Commit

Permalink
RegAllocFast: Rename statistic from NumCopies to NumCoalesced
Browse files Browse the repository at this point in the history
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@346287 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
MatzeB committed Nov 7, 2018
1 parent 0f48414 commit f41ebcb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/CodeGen/RegAllocFast.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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());
}
Expand Down

0 comments on commit f41ebcb

Please sign in to comment.