mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-23 14:25:07 +00:00
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
This commit is contained in:
@@ -49,6 +49,9 @@ using namespace llvm;
|
||||
static cl::opt<bool> DisableInline("disable-inlining",
|
||||
cl::desc("Do not run the inliner pass"));
|
||||
|
||||
static cl::opt<bool> DisableGVNLoadPRE("disable-gvn-loadpre",
|
||||
cl::desc("Do not run the GVN load PRE pass"));
|
||||
|
||||
const char* LTOCodeGenerator::getVersionString() {
|
||||
#ifdef LLVM_VERSION_INFO
|
||||
return PACKAGE_NAME " version " PACKAGE_VERSION ", " LLVM_VERSION_INFO;
|
||||
@@ -353,7 +356,8 @@ bool LTOCodeGenerator::generateObjectFile(raw_ostream &out,
|
||||
passes.add(new TargetData(*_target->getTargetData()));
|
||||
|
||||
PassManagerBuilder().populateLTOPassManager(passes, /*Internalize=*/ false,
|
||||
!DisableInline);
|
||||
!DisableInline,
|
||||
DisableGVNLoadPRE);
|
||||
|
||||
// Make sure everything is still good.
|
||||
passes.add(createVerifierPass());
|
||||
|
Reference in New Issue
Block a user