[Mlir-commits] [mlir] [mlir] Fix region simplification bug when later blocks use prior block argument values (PR #97960)

Mehdi Amini llvmlistbot at llvm.org
Tue Sep 3 13:19:05 PDT 2024


================
@@ -0,0 +1,33 @@
+// RUN: mlir-opt --canonicalize='enable-patterns=AnyPattern region-simplify=aggressive' %s | FileCheck %s
+
+// Perform merge checks without performing canonicalization prior to simplification
+
+// This test should not merge ^bb2 and ^bb5, despite the fact that they are
+// identical because %4 is used outside of ^bb2.
----------------
joker-eph wrote:

So on this example, there is no different in block merging before and after the patch is there? Like the same number of blocks are present in the output as far as I can tell?

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


More information about the Mlir-commits mailing list