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

Giuseppe Rossini llvmlistbot at llvm.org
Wed Jun 12 05:42:30 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:

Sorry, I didn't spot this, but I think this should be set as `Normal`. Having `Aggressive` by default will make the compiler hang for large merges. 

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


More information about the Mlir-commits mailing list