[Mlir-commits] [mlir] [MLIR][XeGPU] Distribute vector.step & vector.shape_cast op from wg to sg (PR #155443)
Chao Chen
llvmlistbot at llvm.org
Thu Sep 4 08:09:41 PDT 2025
================
@@ -566,6 +552,10 @@ struct WgToSgElementwiseOp : public ConversionPattern {
if (auto layout = dyn_cast<xegpu::LayoutAttr>(attr.getValue())) {
if (auto newLayout = layout.dropSgLayoutAndData())
state.addAttribute(attr.getName(), newLayout);
+ } else if (auto sliceAttr =
+ dyn_cast<xegpu::SliceAttr>(attr.getValue())) {
+ if (sliceAttr.isForSubgroup())
+ state.addAttribute(attr.getName(), sliceAttr.dropSgLayoutAndData());
----------------
chencha3 wrote:
Same here
https://github.com/llvm/llvm-project/pull/155443
More information about the Mlir-commits
mailing list