[llvm-commits] [llvm] r103821 - /llvm/trunk/lib/CodeGen/RegAllocFast.cpp
Jakob Stoklund Olesen
stoklund at 2pi.dk
Fri May 14 14:55:50 PDT 2010
Author: stoklund
Date: Fri May 14 16:55:50 2010
New Revision: 103821
URL: http://llvm.org/viewvc/llvm-project?rev=103821&view=rev
Log:
Count coalesced copies
Modified:
llvm/trunk/lib/CodeGen/RegAllocFast.cpp
Modified: llvm/trunk/lib/CodeGen/RegAllocFast.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/RegAllocFast.cpp?rev=103821&r1=103820&r2=103821&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/RegAllocFast.cpp (original)
+++ llvm/trunk/lib/CodeGen/RegAllocFast.cpp Fri May 14 16:55:50 2010
@@ -40,6 +40,7 @@
STATISTIC(NumStores, "Number of stores added");
STATISTIC(NumLoads , "Number of loads added");
+STATISTIC(NumCopies, "Number of copies coalesced");
static RegisterRegAlloc
fastRegAlloc("fast", "fast register allocator", createFastRegisterAllocator);
@@ -771,6 +772,7 @@
// LiveVirtsRegs might refer to the instrs.
for (unsigned i = 0, e = Coalesced.size(); i != e; ++i)
MBB.erase(Coalesced[i]);
+ NumCopies += Coalesced.size();
DEBUG(MBB.dump());
}
More information about the llvm-commits
mailing list