Skip to content

Commit 30f444e

Browse files
committed
Add braces for uniformity
1 parent ed124fc commit 30f444e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,9 @@ struct WgToSgCreateNdOp : public OpConversionPattern<xegpu::CreateNdDescOp> {
130130
op, "sgLayout attribute is required in layout");
131131

132132
SmallVector<int64_t> sgShape;
133-
if (auto sgDataAttr = layout.getSgData())
133+
if (auto sgDataAttr = layout.getSgData()) {
134134
sgShape = llvm::to_vector_of<int64_t>(sgDataAttr.asArrayRef());
135-
else {
135+
} else {
136136
assert(wgShape.size() == sgLayout.size() &&
137137
"sgLayout and wgShape must have the same rank");
138138
sgShape.reserve(wgShape.size());

0 commit comments

Comments
 (0)