Skip to content

Commit 777ac46

Browse files
authored
[llvm] Remove pipeline checks for optsize for DFAJumpThreadingPass
The pass itself checks whether to apply the optimization based on the minsize attribute, so there isn't much functional benefit to preventing the pass from being added. Gating the pass gets added to the pass pipeline complicates the interaction with -enable-dfa-jump-thread, as well. Reviewers: aeubanks Reviewed By: aeubanks Pull Request: #83318
1 parent 9c7cde6 commit 777ac46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Passes/PassBuilderPipelines.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ PassBuilder::buildFunctionSimplificationPipeline(OptimizationLevel Level,
707707

708708
// Re-consider control flow based optimizations after redundancy elimination,
709709
// redo DCE, etc.
710-
if (EnableDFAJumpThreading && Level.getSizeLevel() == 0)
710+
if (EnableDFAJumpThreading)
711711
FPM.addPass(DFAJumpThreadingPass());
712712

713713
FPM.addPass(JumpThreadingPass());

0 commit comments

Comments
 (0)