[flang-commits] [flang] [mlir] [mlir] Do not merge blocks during canonicalization by default (PR #95057)

Mehdi Amini via flang-commits flang-commits at lists.llvm.org
Wed Jun 12 05:57:16 PDT 2024


================
@@ -45,7 +55,8 @@ class GreedyRewriteConfig {
   /// patterns.
   ///
   /// Note: Only applicable when simplifying entire regions.
-  bool enableRegionSimplification = true;
+  GreedySimplifyRegionLevel enableRegionSimplification =
+      GreedySimplifyRegionLevel::Aggressive;
----------------
joker-eph wrote:

This is preserving the behavior of the GreedyPatternRewriter.
This is not the default for the canonicalize pass.

https://github.com/llvm/llvm-project/pull/95057


More information about the flang-commits mailing list