aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Transforms
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-04-02 22:16:50 +0000
committerBill Wendling <isanbard@gmail.com>2012-04-02 22:16:50 +0000
commit3197b4453d214aa96de3a42da8f8fe189fff2077 (patch)
tree38a68f4e6bd20272bab5c4ae4eb3b157c8e0271b /include/llvm/Transforms
parent29f60f359b59032108cdabcde91217b6784c4e13 (diff)
downloadexternal_llvm-3197b4453d214aa96de3a42da8f8fe189fff2077.zip
external_llvm-3197b4453d214aa96de3a42da8f8fe189fff2077.tar.gz
external_llvm-3197b4453d214aa96de3a42da8f8fe189fff2077.tar.bz2
Add an option to turn off the expensive GVN load PRE part of GVN.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153902 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Transforms')
-rw-r--r--include/llvm/Transforms/IPO/PassManagerBuilder.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/llvm/Transforms/IPO/PassManagerBuilder.h b/include/llvm/Transforms/IPO/PassManagerBuilder.h
index 734f37e..47ce902 100644
--- a/include/llvm/Transforms/IPO/PassManagerBuilder.h
+++ b/include/llvm/Transforms/IPO/PassManagerBuilder.h
@@ -131,8 +131,9 @@ public:
/// populateModulePassManager - This sets up the primary pass manager.
void populateModulePassManager(PassManagerBase &MPM);
void populateLTOPassManager(PassManagerBase &PM, bool Internalize,
- bool RunInliner);
+ bool RunInliner, bool DisableGVNLoadPRE = false);
};
+
/// Registers a function for adding a standard set of passes. This should be
/// used by optimizer plugins to allow all front ends to transparently use
/// them. Create a static instance of this class in your plugin, providing a
@@ -143,5 +144,6 @@ struct RegisterStandardPasses {
PassManagerBuilder::addGlobalExtension(Ty, Fn);
}
};
+
} // end namespace llvm
#endif