summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Kirth <paulkirth@google.com>2024-02-28 10:52:30 -0800
committerGitHub <noreply@github.com>2024-02-28 10:52:30 -0800
commit395d0b88271c1d980de2cce0e48765471e8533bf (patch)
treef28eaa04724d6f63fb48ae77e08ee78770dc808d
parent8683707fc4a7a79945941b60e53990a7e0d05a69 (diff)
[llvm] Remove pipeline checks for optsize for DFAJumpThreadingPass (#83188)upstream/users/ilovepi/spr/main.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 how the pass gets added to the pass pipeline complicates the interaction with -enable-dfa-jump-thread, as well.
-rw-r--r--llvm/lib/Passes/PassBuilderPipelines.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Passes/PassBuilderPipelines.cpp b/llvm/lib/Passes/PassBuilderPipelines.cpp
index 6e75340ced90..cbbbec0ccc8c 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());