[Mlir-commits] [mlir] [MLIR][XeGPU] Enhance Layout Propagation for broadcasting both leading dimensions and inner unit dimensions (PR #185583)
Björn Pettersson
llvmlistbot at llvm.org
Mon Mar 16 02:57:40 PDT 2026
================
@@ -677,10 +677,17 @@ void LayoutInfoPropagation::visitVectorBroadCastOp(
auto resShape = resultTy.getShape();
size_t dimDiff = resultTy.getRank() - sourceTy.getRank();
- for (size_t i = 0; i < srcShape.size(); i++)
- if ((srcShape[i] == 1) && (resShape[i + dimDiff] != 1))
- broadcast.emitWarning("broadcast must either from low-rank or same-rank "
- "with unit-dim, mixed scenario is not supported!");
+ if (dimDiff == 0) {
+ bool hasUnitDim =
----------------
bjope wrote:
Guess this was solved by https://github.com/llvm/llvm-project/commit/ae49f7d8d40e2ae147906a1a04f7ab6ab9ce9eed
https://github.com/llvm/llvm-project/pull/185583
More information about the Mlir-commits
mailing list