diff --git a/llvm/lib/Passes/PassBuilderPipelines.cpp b/llvm/lib/Passes/PassBuilderPipelines.cpp --- a/llvm/lib/Passes/PassBuilderPipelines.cpp +++ b/llvm/lib/Passes/PassBuilderPipelines.cpp @@ -1729,6 +1729,8 @@ // The IPO Passes may leave cruft around. Clean up after them. FPM.addPass(InstCombinePass()); invokePeepholeEPCallbacks(FPM, Level); + if (EnableDFAJumpThreading && Level.getSizeLevel() == 0) + FPM.addPass(DFAJumpThreadingPass()); if (EnableConstraintElimination) FPM.addPass(ConstraintEliminationPass());