File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
mlir/lib/Dialect/XeGPU/Transforms Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -1000,14 +1000,12 @@ struct WgToSgVectorShapeCastOp
10001000 if (!onlyUnitDims (srcType.getShape (), sgShape))
10011001 return failure ();
10021002
1003- // Check to verify that if expanding dims, the input operand's layout
1004- // is sliceAttr and if reducing dims, result's layout is
1005- // sliceAttr.
10061003 // For rank reducing or increasing shape_cast ops, the lower rank layout
10071004 // must be a slice of higher rank layout.
1008- int64_t sourceRank = srcType.getRank ();;
1005+ int64_t sourceRank = srcType.getRank ();
10091006 int64_t resultRank = sgShape.size ();
1010- xegpu::DistributeLayoutAttr sourceLayout = xegpu::getDistributeLayoutAttr (op.getSource ());
1007+ xegpu::DistributeLayoutAttr sourceLayout =
1008+ xegpu::getDistributeLayoutAttr (op.getSource ());
10111009 if (sourceRank < resultRank && !sourceLayout.isSliceOf (layout))
10121010 return failure ();
10131011 if (sourceRank > resultRank && !layout.isSliceOf (sourceLayout))
You can’t perform that action at this time.
0 commit comments