[Mlir-commits] [mlir] [MLIR][XeGPU] Allow uniform vectors in layout conflict resolution (PR #183756)
Artem Kroviakov
llvmlistbot at llvm.org
Tue Mar 3 02:02:28 PST 2026
================
@@ -100,6 +100,18 @@ func.func @elementwise_conflict() -> vector<32x32xf16> {
return %2 : vector<32x32xf16>
}
+// CHECK-LABEL: func.func @elementwise_conflict_uniform
+// CHECK-DAG: %[[V0:.*]] = "some_op"() : () -> vector<32x32xf16>
+// CHECK-DAG: %[[V1:.*]] = "some_op"() : () -> vector<32x32xf16>
+// CHECK: %[[ADD:.*]] = arith.addf %[[V0]], %[[V1]] : vector<32x32xf16>
+// CHECK: return %[[ADD]] : vector<32x32xf16>
+func.func @elementwise_conflict_uniform() -> vector<32x32xf16> {
+ %0 = "some_op"() : () -> vector<32x32xf16>
+ %1 = "some_op"() : () -> vector<32x32xf16>
+ %2 = arith.addf %0, %1 : vector<32x32xf16>
----------------
akroviakov wrote:
Changed to 2xindex
https://github.com/llvm/llvm-project/pull/183756
More information about the Mlir-commits
mailing list