[llvm-commits] [poolalloc] r121067 - /poolalloc/trunk/lib/DSA/DataStructureStats.cpp
Arushi Aggarwal
aggarwa4 at illinois.edu
Mon Dec 6 15:50:35 PST 2010
Author: aggarwa4
Date: Mon Dec 6 17:50:35 2010
New Revision: 121067
URL: http://llvm.org/viewvc/llvm-project?rev=121067&view=rev
Log:
Also, measure number of load and store that access
type unknown nodes.
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=121067&r1=121066&r2=121067&view=diff
==============================================================================
--- poolalloc/trunk/lib/DSA/DataStructureStats.cpp (original)
+++ poolalloc/trunk/lib/DSA/DataStructureStats.cpp Mon Dec 6 17:50:35 2010
@@ -48,6 +48,8 @@
"Number of loads/stores which are on incomplete nodes");
STATISTIC (NumUnknownAccesses,
"Number of loads/stores which are on unknown nodes");
+ STATISTIC (NumExternalAccesses,
+ "Number of loads/stores which are on external nodes");
class DSGraphStats : public FunctionPass, public InstVisitor<DSGraphStats> {
void countCallees(const Function &F);
@@ -157,6 +159,10 @@
++NumIncompleteAccesses;
return true;
}
+ if ( N->isExternalNode()){
+ ++NumExternalAccesses;
+ return true;
+ }
if (N->isUnknownNode()){
++NumUnknownAccesses;
}
More information about the llvm-commits
mailing list