Skip to content

Commit 4b1ca9c

Browse files
authored
[RISCV] Remove -riscv-enable-vl-optimizer flag (#149349)
The RISCVVLOptimizer has been enabled by default for a while now and I'm not aware of any outstanding issues that might need it to be disabled. This removes the -riscv-enable-vl-optimizer flag to reduce the number of configurations we have to support.
1 parent 4bee7e0 commit 4b1ca9c

File tree

6 files changed

+1811
-4131
lines changed

6 files changed

+1811
-4131
lines changed

llvm/lib/Target/RISCV/RISCVTargetMachine.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,6 @@ static cl::opt<bool> EnablePostMISchedLoadStoreClustering(
104104
cl::desc("Enable PostRA load and store clustering in the machine scheduler"),
105105
cl::init(true));
106106

107-
static cl::opt<bool>
108-
EnableVLOptimizer("riscv-enable-vl-optimizer",
109-
cl::desc("Enable the RISC-V VL Optimizer pass"),
110-
cl::init(true), cl::Hidden);
111-
112107
static cl::opt<bool> DisableVectorMaskMutation(
113108
"riscv-disable-vector-mask-mutation",
114109
cl::desc("Disable the vector mask scheduling mutation"), cl::init(false),
@@ -617,8 +612,7 @@ void RISCVPassConfig::addPreRegAlloc() {
617612
addPass(createRISCVPreRAExpandPseudoPass());
618613
if (TM->getOptLevel() != CodeGenOptLevel::None) {
619614
addPass(createRISCVMergeBaseOffsetOptPass());
620-
if (EnableVLOptimizer)
621-
addPass(createRISCVVLOptimizerPass());
615+
addPass(createRISCVVLOptimizerPass());
622616
}
623617

624618
addPass(createRISCVInsertReadWriteCSRPass());

0 commit comments

Comments
 (0)