diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-05-06 17:59:57 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-05-06 17:59:57 +0000 |
commit | 6cc4e4ddd0caac994e83c7353ccbfc2aadf8318b (patch) | |
tree | d607967a47d26fdcd9c5a4989e53a2c9c7f68ff8 /llvm/lib/CodeGen/VirtRegMap.cpp | |
parent | ac893d68989153b1a58772400af53fea80f7e3ec (diff) | |
download | bcm5719-llvm-6cc4e4ddd0caac994e83c7353ccbfc2aadf8318b.tar.gz bcm5719-llvm-6cc4e4ddd0caac994e83c7353ccbfc2aadf8318b.zip |
Also count identity copies.
llvm-svn: 130996
Diffstat (limited to 'llvm/lib/CodeGen/VirtRegMap.cpp')
-rw-r--r-- | llvm/lib/CodeGen/VirtRegMap.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/VirtRegMap.cpp b/llvm/lib/CodeGen/VirtRegMap.cpp index 226b78f7bcb..7557979ec9b 100644 --- a/llvm/lib/CodeGen/VirtRegMap.cpp +++ b/llvm/lib/CodeGen/VirtRegMap.cpp @@ -42,6 +42,7 @@ using namespace llvm; STATISTIC(NumSpills , "Number of register spills"); +STATISTIC(NumIdCopies, "Number of identity moves eliminated after rewriting"); //===----------------------------------------------------------------------===// // VirtRegMap implementation @@ -318,6 +319,7 @@ void VirtRegMap::rewrite(SlotIndexes *Indexes) { // Finally, remove any identity copies. if (MI->isIdentityCopy()) { + ++NumIdCopies; if (MI->getNumOperands() == 2) { DEBUG(dbgs() << "Deleting identity copy.\n"); RemoveMachineInstrFromMaps(MI); |