[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:18 PST 2026


================
@@ -1311,8 +1311,7 @@ ResolveLayoutConflicts::resolveVectorConsumer(OpOperand &operand) {
   // Get the current layout of the vector value.
   auto producerLayout = xegpu::getDistributeLayoutAttr(vectorValue);
   if (!producerLayout)
-    return consumerOp->emitError("Vector operand has no layout assigned.");
-
+    return success(); // vector with no layout is uniform
----------------
akroviakov wrote:

Added a warning for non-1D vectors. A more global effort is needed to enforce the notion of non-tensor-data vectors (that we check to be 1D only).

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


More information about the Mlir-commits mailing list