[PATCH] D140853: [ConstraintElim] Move after first instcombine run.
Florian Hahn via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 3 05:25:26 PST 2023
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG9e6d2c82d6aa: [ConstraintElim] Move after first instcombine run. (authored by fhahn).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D140853/new/
https://reviews.llvm.org/D140853
Files:
llvm/lib/Passes/PassBuilderPipelines.cpp
Index: llvm/lib/Passes/PassBuilderPipelines.cpp
===================================================================
--- llvm/lib/Passes/PassBuilderPipelines.cpp
+++ llvm/lib/Passes/PassBuilderPipelines.cpp
@@ -492,9 +492,6 @@
SimplifyCFGPass(SimplifyCFGOptions().convertSwitchRangeToICmp(true)));
}
- if (EnableConstraintElimination)
- FPM.addPass(ConstraintEliminationPass());
-
// Speculative execution if the target has divergent branches; otherwise nop.
FPM.addPass(SpeculativeExecutionPass(/* OnlyIfDivergentTarget =*/true));
@@ -508,6 +505,9 @@
if (Level == OptimizationLevel::O3)
FPM.addPass(AggressiveInstCombinePass());
+ if (EnableConstraintElimination)
+ FPM.addPass(ConstraintEliminationPass());
+
if (!Level.isOptimizingForSize())
FPM.addPass(LibCallsShrinkWrapPass());
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D140853.485967.patch
Type: text/x-patch
Size: 833 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230103/b3db9ae0/attachment.bin>
More information about the llvm-commits
mailing list