[llvm-commits] [poolalloc] r122374 - /poolalloc/trunk/lib/DSA/DSGraph.cpp
Arushi Aggarwal
aggarwa4 at illinois.edu
Tue Dec 21 15:27:23 PST 2010
Author: aggarwa4
Date: Tue Dec 21 17:27:22 2010
New Revision: 122374
URL: http://llvm.org/viewvc/llvm-project?rev=122374&view=rev
Log:
Added a statistic, to know the number of unresolved
indirect call sites.
Modified:
poolalloc/trunk/lib/DSA/DSGraph.cpp
Modified: poolalloc/trunk/lib/DSA/DSGraph.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/DSA/DSGraph.cpp?rev=122374&r1=122373&r2=122374&view=diff
==============================================================================
--- poolalloc/trunk/lib/DSA/DSGraph.cpp (original)
+++ poolalloc/trunk/lib/DSA/DSGraph.cpp Tue Dec 21 17:27:22 2010
@@ -39,11 +39,12 @@
#define COLLAPSE_ARRAYS_AGGRESSIVELY 0
namespace {
- STATISTIC (NumCallNodesMerged , "Number of call nodes merged");
- STATISTIC (NumDNE , "Number of nodes removed by reachability");
- STATISTIC (NumTrivialDNE , "Number of nodes trivially removed");
- STATISTIC (NumTrivialGlobalDNE, "Number of globals trivially removed");
- STATISTIC (NumFiltered , "Number of calls filtered");
+ STATISTIC (NumCallNodesMerged , "Number of call nodes merged");
+ STATISTIC (NumDNE , "Number of nodes removed by reachability");
+ STATISTIC (NumTrivialDNE , "Number of nodes trivially removed");
+ STATISTIC (NumTrivialGlobalDNE , "Number of globals trivially removed");
+ STATISTIC (NumFiltered , "Number of calls filtered");
+ STATISTIC (NumIndirectIncompleteCallSites , "Number of calls that could not be resolved");
static cl::opt<bool> noDSACallConv("dsa-no-filter-callcc",
cl::desc("Don't filter call sites based on calling convention."),
cl::Hidden,
@@ -1678,6 +1679,7 @@
MaybeTargets.assign(GlobalFunctionList.begin(), GlobalFunctionList.end());
DCG.insert(CS, 0);
+ NumIndirectIncompleteCallSites++;
//
// Add to the call graph only function targets that have well-defined
// behavior using LLVM semantics.
More information about the llvm-commits
mailing list