diff options
author | Matthias Braun <matze@braunis.de> | 2018-11-07 02:04:07 +0000 |
---|---|---|
committer | Matthias Braun <matze@braunis.de> | 2018-11-07 02:04:07 +0000 |
commit | 14af82a608637c3f17f1c6b5875db58958970ca4 (patch) | |
tree | 4b8ff33e8ff4398c932b0fe2571f55bcf61921cd /llvm/lib/CodeGen/RegAllocFast.cpp | |
parent | 756b50ea85802af97fa4cd188ec5aa50d43c0c10 (diff) | |
download | bcm5719-llvm-14af82a608637c3f17f1c6b5875db58958970ca4.tar.gz bcm5719-llvm-14af82a608637c3f17f1c6b5875db58958970ca4.zip |
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
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocFast.cpp')
-rw-r--r-- | llvm/lib/CodeGen/RegAllocFast.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/RegAllocFast.cpp b/llvm/lib/CodeGen/RegAllocFast.cpp index 7b57c6cbcdb..a388cd608d1 100644 --- a/llvm/lib/CodeGen/RegAllocFast.cpp +++ b/llvm/lib/CodeGen/RegAllocFast.cpp @@ -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()); } |