diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-05-14 21:55:50 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-05-14 21:55:50 +0000 |
commit | 6c038e33e994cfa8a513f53a54821feb593872e7 (patch) | |
tree | 553062b7880d830d4d8cc8f4e55e719c3c219ef1 /llvm/lib/CodeGen | |
parent | 33af4fcdeaeac930d32d37de8a68a2892929cb0f (diff) | |
download | bcm5719-llvm-6c038e33e994cfa8a513f53a54821feb593872e7.tar.gz bcm5719-llvm-6c038e33e994cfa8a513f53a54821feb593872e7.zip |
Count coalesced copies
llvm-svn: 103821
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/RegAllocFast.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/RegAllocFast.cpp b/llvm/lib/CodeGen/RegAllocFast.cpp index c7f60ccea30..0e92996d949 100644 --- a/llvm/lib/CodeGen/RegAllocFast.cpp +++ b/llvm/lib/CodeGen/RegAllocFast.cpp @@ -40,6 +40,7 @@ static cl::opt<bool> VerifyFastRegalloc("verify-fast-regalloc", cl::Hidden, 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 @@ void RAFast::AllocateBasicBlock(MachineBasicBlock &MBB) { // 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()); } |