[llvm-commits] [poolalloc] r130064 - /poolalloc/trunk/lib/DSA/DataStructureStats.cpp
Arushi Aggarwal
aggarwa4 at illinois.edu
Sat Apr 23 10:31:43 PDT 2011
Author: aggarwa4
Date: Sat Apr 23 12:31:43 2011
New Revision: 130064
URL: http://llvm.org/viewvc/llvm-project?rev=130064&view=rev
Log:
Count Int2PtrNodes.
Modified:
poolalloc/trunk/lib/DSA/DataStructureStats.cpp
Modified: poolalloc/trunk/lib/DSA/DataStructureStats.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/DSA/DataStructureStats.cpp?rev=130064&r1=130063&r2=130064&view=diff
==============================================================================
--- poolalloc/trunk/lib/DSA/DataStructureStats.cpp (original)
+++ poolalloc/trunk/lib/DSA/DataStructureStats.cpp Sat Apr 23 12:31:43 2011
@@ -54,6 +54,8 @@
"Number of loads/stores which are on unknown nodes");
STATISTIC (NumExternalAccesses,
"Number of loads/stores which are on external nodes");
+ STATISTIC (NumI2PAccesses,
+ "Number of loads/stores which are on inttoptr nodes");
STATISTIC (NumFoldedAccess,
"Number of loads/stores which are on folded nodes");
@@ -184,6 +186,10 @@
++NumUnknownAccesses;
return true;
}
+ if (N->isIntToPtrNode()){
+ ++NumI2PAccesses;
+ return true;
+ }
// it is a complete node, now check how many types are present
int count = 0;
unsigned offset = NH.getOffset() + Offset;
More information about the llvm-commits
mailing list