[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:
Arthur Eubanks 2020-07-08 08:50:22 -07:00
parent a074984250
commit 481709e831
3 changed files with 5 additions and 8 deletions

View File

@ -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

View File

@ -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;

View File

@ -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"),