projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e38c615
)
Also count identity copies.
author
Jakob Stoklund Olesen
<stoklund@2pi.dk>
Fri, 6 May 2011 17:59:57 +0000
(17:59 +0000)
committer
Jakob Stoklund Olesen
<stoklund@2pi.dk>
Fri, 6 May 2011 17:59:57 +0000
(17:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130996
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/VirtRegMap.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/VirtRegMap.cpp
b/lib/CodeGen/VirtRegMap.cpp
index 226b78f7bcbd2ba46f2f2888e04a149ffba89c4f..7557979ec9bb852cd05a823467570de47dc23951 100644
(file)
--- a/
lib/CodeGen/VirtRegMap.cpp
+++ b/
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);