diff options
author | Paul Kirth <paulkirth@google.com> | 2024-02-28 10:52:30 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-28 10:52:30 -0800 |
commit | 395d0b88271c1d980de2cce0e48765471e8533bf (patch) | |
tree | f28eaa04724d6f63fb48ae77e08ee78770dc808d | |
parent | 8683707fc4a7a79945941b60e53990a7e0d05a69 (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.cpp | 2 |
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()); |