[Mlir-commits] [mlir] [MLIR][XeGPU] Distribute vector.step & vector.shape_cast op from wg to sg (PR #155443)

Igor Zamyatin llvmlistbot at llvm.org
Thu Aug 28 08:18:34 PDT 2025


================
@@ -507,8 +507,15 @@ struct WgToSgVectorBroadcastOp
     for (auto operand : adaptor.getOperands().front()) {
       auto newBroadcast = vector::BroadcastOp::create(rewriter, op.getLoc(),
                                                       newResultType, operand);
-      xegpu::setDistributeLayoutAttr(newBroadcast->getResult(0),
-                                     layout.dropSgLayoutAndData());
+      if (auto sliceAttr = dyn_cast_if_present<xegpu::SliceAttr>(layout)) {
----------------
Garra1980 wrote:

please mention this and Elementwise op changes in the description

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


More information about the Mlir-commits mailing list