Skip to content

Commit 395d0b8

Browse files
authored
[llvm] Remove pipeline checks for optsize for DFAJumpThreadingPass (#83188)
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 how the pass gets added to the pass pipeline complicates the interaction with -enable-dfa-jump-thread, as well.
1 parent 8683707 commit 395d0b8

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
@@ -717,7 +717,7 @@ PassBuilder::buildFunctionSimplificationPipeline(OptimizationLevel Level,
717717

718718
// Re-consider control flow based optimizations after redundancy elimination,
719719
// redo DCE, etc.
720-
if (EnableDFAJumpThreading && Level.getSizeLevel() == 0)
720+
if (EnableDFAJumpThreading)
721721
FPM.addPass(DFAJumpThreadingPass());
722722

723723
FPM.addPass(JumpThreadingPass());

0 commit comments

Comments
 (0)