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

Ben Howe llvmlistbot at llvm.org
Tue Sep 3 13:33:12 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.
----------------
bmhowe23 wrote:

The number of blocks is the same before and after the patch, but the `CHECK` item fails without the patch.

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


More information about the Mlir-commits mailing list