[llvm-commits] [poolalloc] r121071 - in /poolalloc/trunk: include/dsa/DataStructure.h lib/DSA/BottomUpClosure.cpp
Arushi Aggarwal
aggarwa4 at illinois.edu
Mon Dec 6 15:54:08 PST 2010
Author: aggarwa4
Date: Mon Dec 6 17:54:08 2010
New Revision: 121071
URL: http://llvm.org/viewvc/llvm-project?rev=121071&view=rev
Log:
DSA no longer uses Entry Point Analysis. Remove
dependency.
Modified:
poolalloc/trunk/include/dsa/DataStructure.h
poolalloc/trunk/lib/DSA/BottomUpClosure.cpp
Modified: poolalloc/trunk/include/dsa/DataStructure.h
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/include/dsa/DataStructure.h?rev=121071&r1=121070&r2=121071&view=diff
==============================================================================
--- poolalloc/trunk/include/dsa/DataStructure.h (original)
+++ poolalloc/trunk/include/dsa/DataStructure.h Mon Dec 6 17:54:08 2010
@@ -19,7 +19,6 @@
#include "llvm/Support/CallSite.h"
#include "llvm/ADT/EquivalenceClasses.h"
-#include "dsa/EntryPointAnalysis.h"
#include "dsa/DSCallGraph.h"
#include "dsa/svset.h"
#include "dsa/super_set.h"
@@ -206,7 +205,6 @@
///
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
AU.addRequired<LocalDataStructures>();
- AU.addPreserved<EntryPointAnalysis>();
AU.setPreservesCFG();
}
};
@@ -220,7 +218,6 @@
const char* debugname;
- EntryPointAnalysis* EP;
// filterCallees -- Whether or not we filter out illegal callees
// from the CallGraph. This is useful while doing original BU,
@@ -242,8 +239,6 @@
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
AU.addRequired<StdLibDataStructures>();
- AU.addRequired<EntryPointAnalysis>();
- AU.addPreserved<EntryPointAnalysis>();
AU.setPreservesCFG();
}
@@ -292,8 +287,6 @@
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
AU.addRequired<BUDataStructures>();
- AU.addRequired<EntryPointAnalysis > ();
- AU.addPreserved<EntryPointAnalysis>();
AU.setPreservesCFG();
}
@@ -317,7 +310,6 @@
virtual bool runOnModule(Module &M);
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
- AU.addRequired<EntryPointAnalysis>();
AU.addRequired<CompleteBUDataStructures>();
AU.setPreservesCFG();
}
Modified: poolalloc/trunk/lib/DSA/BottomUpClosure.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/DSA/BottomUpClosure.cpp?rev=121071&r1=121070&r2=121071&view=diff
==============================================================================
--- poolalloc/trunk/lib/DSA/BottomUpClosure.cpp (original)
+++ poolalloc/trunk/lib/DSA/BottomUpClosure.cpp Mon Dec 6 17:54:08 2010
@@ -44,7 +44,6 @@
//
bool BUDataStructures::runOnModule(Module &M) {
init(&getAnalysis<StdLibDataStructures>(), false, true, false, false );
- //EP = &getAnalysis<EntryPointAnalysis>();
return runOnModuleInternal(M);
}
@@ -81,13 +80,6 @@
//
postOrderInline (M);
-#if 0
- //DSA does not use entryPoint analysis
- std::vector<const Function*> EntryPoints;
- EP = &getAnalysis<EntryPointAnalysis>();
- EP->findEntryPoints(M, EntryPoints);
-#endif
-
// At the end of the bottom-up pass, the globals graph becomes complete.
// FIXME: This is not the right way to do this, but it is sorta better than
// nothing! In particular, externally visible globals and unresolvable call
More information about the llvm-commits
mailing list