Skip to content

Commit 9f3446e

Browse files
committed
Clang-format
1 parent d5b4f5a commit 9f3446e

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

mlir/lib/Dialect/XeGPU/Transforms/XeGPUWgToSgDistribute.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff 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))

0 commit comments

Comments
 (0)