We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69d0c3e commit c51db9fCopy full SHA for c51db9f
llvm/lib/Target/RISCV/RISCVTargetMachine.cpp
@@ -652,7 +652,8 @@ void RISCVPassConfig::addPostRegAlloc() {
652
void RISCVTargetMachine::registerPassBuilderCallbacks(PassBuilder &PB) {
653
PB.registerLateLoopOptimizationsEPCallback([=](LoopPassManager &LPM,
654
OptimizationLevel Level) {
655
- LPM.addPass(LoopIdiomVectorizePass(LoopIdiomVectorizeStyle::Predicated));
+ if (Level != OptimizationLevel::O0)
656
+ LPM.addPass(LoopIdiomVectorizePass(LoopIdiomVectorizeStyle::Predicated));
657
});
658
}
659
0 commit comments