[Mlir-commits] [mlir] [MLIR][XeGPU] Scattered ops sg-to-wi distribution (PR #154949)
Artem Kroviakov
llvmlistbot at llvm.org
Fri Aug 29 02:54:02 PDT 2025
================
@@ -572,31 +588,36 @@ void LayoutInfoPropagation::visitCreateDescOp(
propagateIfChanged(operands[1], operands[1]->meet(layout));
}
-/// Set the layout for the value, tensor descriptor, and mask operands in the
-/// StoreScatterOp.
+/// Set the layout for the value, tensor descriptor, offset and mask operands in
+/// the StoreScatterOp.
void LayoutInfoPropagation::visitStoreScatterOp(
xegpu::StoreScatterOp storeScatter, ArrayRef<LayoutInfoLattice *> operands,
ArrayRef<const LayoutInfoLattice *> results) {
// Currently, for 2D StoreScatterOp we expect that the height dimension of
// the tensor descriptor is equal to the subgroup size. This is ensured by
// the op verifier.
- ArrayRef<int64_t> tdescShape = storeScatter.getTensorDescType().getShape();
- if (tdescShape.size() > 1)
+ auto payloadTy = dyn_cast<VectorType>(storeScatter.getValueType());
+ assert(payloadTy && "Only vector payload distribution is supported");
----------------
akroviakov wrote:
Changed to a warning and propagation stop
https://github.com/llvm/llvm-project/pull/154949
More information about the Mlir-commits
mailing list