[PATCH] D135915: [ConstraintElim] Enable pass by default.

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 14 12:28:09 PDT 2022


nikic added a comment.

As mentioned previously, I'm generally on board with this. I'll try to review the implementation sometime soon.



================
Comment at: llvm/lib/Passes/PassBuilderPipelines.cpp:1647
+  if (EnableConstraintElimination)
+    FPM.addPass(ConstraintEliminationPass());
+
----------------
Land this change separately?

Also, looking at the position of ConstraintElimination in the normal pipeline, did you experiment with different pipeline positions? The current scheduling looks too early to me, it runs directly after SROA/EarlyCSE at the start of the function simplification pipeline. I would expect that running ConstraintElimination at least after the first InstCombine pass would be beneficial, to ensure that IR is in canonical form.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D135915/new/

https://reviews.llvm.org/D135915



More information about the llvm-commits mailing list