forked from OSchip/llvm-project
[NewPM][opt] Share -disable-loop-unrolling between pass managers
There's no reason to introduce a new option for the NPM. The various PGO options are shared in this manner. Reviewed By: echristo Differential Revision: https://reviews.llvm.org/D83368
This commit is contained in:
parent
a074984250
commit
481709e831
|
@ -1,4 +1,4 @@
|
|||
; RUN: opt -passes='default<O1>' -disable-verify --mtriple x86_64-pc-linux-gnu -new-pm-disable-loop-unrolling=true \
|
||||
; RUN: opt -passes='default<O1>' -disable-verify --mtriple x86_64-pc-linux-gnu -disable-loop-unrolling=true \
|
||||
; RUN: -S -o - %s | FileCheck %s
|
||||
|
||||
; This checks that the loop full unroller will fire in the new pass manager
|
||||
|
|
|
@ -102,9 +102,7 @@ static cl::opt<std::string> OptimizerLastEPPipeline(
|
|||
cl::Hidden);
|
||||
|
||||
// Individual pipeline tuning options.
|
||||
static cl::opt<bool> DisableLoopUnrolling(
|
||||
"new-pm-disable-loop-unrolling",
|
||||
cl::desc("Disable loop unrolling in all relevant passes"), cl::init(false));
|
||||
extern cl::opt<bool> DisableLoopUnrolling;
|
||||
|
||||
extern cl::opt<PGOKind> PGOKindFlag;
|
||||
extern cl::opt<std::string> ProfileFile;
|
||||
|
|
|
@ -183,10 +183,9 @@ CodeGenOptLevel("codegen-opt-level",
|
|||
static cl::opt<std::string>
|
||||
TargetTriple("mtriple", cl::desc("Override target triple for module"));
|
||||
|
||||
static cl::opt<bool>
|
||||
DisableLoopUnrolling("disable-loop-unrolling",
|
||||
cl::desc("Disable loop unrolling in all relevant passes"),
|
||||
cl::init(false));
|
||||
cl::opt<bool> DisableLoopUnrolling(
|
||||
"disable-loop-unrolling",
|
||||
cl::desc("Disable loop unrolling in all relevant passes"), cl::init(false));
|
||||
|
||||
static cl::opt<bool> EmitSummaryIndex("module-summary",
|
||||
cl::desc("Emit module summary index"),
|
||||
|
|
Loading…
Reference in New Issue