[Mlir-commits] [mlir] [mlir] Fix support for loop normalization with integer indices (PR #76566)

Ivan Butygin llvmlistbot at llvm.org
Sat Dec 30 10:14:40 PST 2023


================
@@ -270,3 +270,32 @@ module attributes {transform.with_named_sequence} {
     transform.yield
   }
 }
+
+// -----
+
+// CHECK-LABEL: func @coalesce_i32_loops(
+
+func.func @coalesce_i32_loops() {
+  %0 = arith.constant 0 : i32
+  %1 = arith.constant 128 : i32
+  %2 = arith.constant 2 : i32
+  %3 = arith.constant 64 : i32
+  // CHECK: %[[C0_I32:.*]] = arith.constant 0 : i32
----------------
Hardcode84 wrote:

I think, constants order are not guaranteed either, so better to use `// CHECK-DAG:`

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


More information about the Mlir-commits mailing list