aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/PassManagers.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-08-08 15:14:09 +0000
committerChris Lattner <sabre@nondot.org>2008-08-08 15:14:09 +0000
commit0dabb7e8f3e371cf0d6a9747b5bd4b555cc32c95 (patch)
tree83f0406dcedbbc9d98891ae1b3927a7386466831 /include/llvm/PassManagers.h
parente1a4eda990a765952434d39d7c14299d1d4614a5 (diff)
downloadexternal_llvm-0dabb7e8f3e371cf0d6a9747b5bd4b555cc32c95.zip
external_llvm-0dabb7e8f3e371cf0d6a9747b5bd4b555cc32c95.tar.gz
external_llvm-0dabb7e8f3e371cf0d6a9747b5bd4b555cc32c95.tar.bz2
Don't call getAnalysisUsage unless -debug-pass is enabled. This speeds
up the passmgr by avoiding useless work. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54528 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/PassManagers.h')
-rw-r--r--include/llvm/PassManagers.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/llvm/PassManagers.h b/include/llvm/PassManagers.h
index c9944b5..5d90a22 100644
--- a/include/llvm/PassManagers.h
+++ b/include/llvm/PassManagers.h
@@ -308,8 +308,8 @@ public:
void dumpPassArguments() const;
void dumpPassInfo(Pass *P, enum PassDebuggingString S1,
enum PassDebuggingString S2, const char *Msg);
- void dumpAnalysisSetInfo(const char *Msg, Pass *P,
- const AnalysisUsage::VectorType &Set) const;
+ void dumpRequiredSet(const Pass *P) const;
+ void dumpPreservedSet(const Pass *P) const;
virtual unsigned getNumContainedPasses() const {
return (unsigned)PassVector.size();
@@ -346,6 +346,9 @@ protected:
std::map<AnalysisID, Pass *> *InheritedAnalysis[PMT_Last];
private:
+ void dumpAnalysisUsage(const char *Msg, const Pass *P,
+ const AnalysisUsage::VectorType &Set) const;
+
// Set of available Analysis. This information is used while scheduling
// pass. If a pass requires an analysis which is not not available then
// equired analysis pass is scheduled to run before the pass itself is