File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed
mlir/lib/Dialect/XeGPU/Transforms Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -341,19 +341,15 @@ struct WgToSgVectorBroadcastOp
341341 if (!resultType)
342342 return failure ();
343343
344- // Only handle broadcasts to vectors with XeGPU layout attribute
345344 xegpu::LayoutAttr layout = xegpu::getLayoutAttr (op.getResult ());
346345 if (!layout || !layout.getSgLayout ())
347346 return failure ();
348347
349- // Extract sgShape from layout
350348 SmallVector<int64_t > sgShape = getSgShapeAndCount (wgShape, layout).first ;
351349 VectorType newResultType =
352350 VectorType::get (sgShape, resultType.getElementType ());
353351 SmallVector<Value> newBroadcasts;
354352
355- // The operand is always a scalar or lower-rank vector, so just broadcast
356- // for each subgroup
357353 for (size_t i = 0 ; i < adaptor.getOperands ().front ().size (); ++i) {
358354 auto newBroadcast = rewriter.create <vector::BroadcastOp>(
359355 op.getLoc (), newResultType, adaptor.getOperands ().front ()[i]);
You can’t perform that action at this time.
0 commit comments