From 395d0b88271c1d980de2cce0e48765471e8533bf Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Wed, 28 Feb 2024 10:52:30 -0800 Subject: [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. --- llvm/lib/Passes/PassBuilderPipelines.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Passes/PassBuilderPipelines.cpp b/llvm/lib/Passes/PassBuilderPipelines.cpp index 6e75340..cbbbec0 100644 --- a/llvm/lib/Passes/PassBuilderPipelines.cpp +++ b/llvm/lib/Passes/PassBuilderPipelines.cpp @@ -717,7 +717,7 @@ PassBuilder::buildFunctionSimplificationPipeline(OptimizationLevel Level, // Re-consider control flow based optimizations after redundancy elimination, // redo DCE, etc. - if (EnableDFAJumpThreading && Level.getSizeLevel() == 0) + if (EnableDFAJumpThreading) FPM.addPass(DFAJumpThreadingPass()); FPM.addPass(JumpThreadingPass()); -- cgit v1.1