[Mlir-commits] [mlir] [MLIR][XeGPU] Wrap layout with a slice attr when propagating broadcast (PR #169054)
Igor Zamyatin
llvmlistbot at llvm.org
Tue Nov 25 07:18:34 PST 2025
================
@@ -593,10 +597,19 @@ void LayoutInfoPropagation::visitShapeCastOp(
return;
}
int64_t slicedDim = resultTy.getShape()[0] == 1 ? 0 : 1;
- xegpu::SliceAttr sliceLayout = xegpu::SliceAttr::get(
- shapeCast->getContext(), cast<xegpu::LayoutAttr>(resultLayout.get()),
- DenseI64ArrayAttr::get(shapeCast->getContext(), {slicedDim}));
- propagateIfChanged(operands[0], operands[0]->meet(LayoutInfo(sliceLayout)));
+ LayoutInfo operandLayout;
----------------
Garra1980 wrote:
please add short comment here
https://github.com/llvm/llvm-project/pull/169054
More information about the Mlir-commits
mailing list