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

Giuseppe Rossini via flang-commits flang-commits at lists.llvm.org
Wed Jun 12 06:01:24 PDT 2024


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

The point is that the initial bug was seen in the rewriter (canonicalization was the way I reproduced it). Maybe we could set a threshold for the number of block arguments to merge (like I was proposing above)?


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


More information about the flang-commits mailing list