Skip to content

Commit b7ce6c5

Browse files
authored
Fix g++ warning -Werror=parentheses (iree-org#22225)
Breaks builds using g++ Signed-off-by: Ian Wood <ianwood@u.northwestern.edu>
1 parent f8119a7 commit b7ce6c5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler/src/iree/compiler/Codegen/Dialect/GPU/IR/GPUTileSwizzleUtils.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,9 @@ static TileSwizzle getIntrinsicSwizzle(MMAIntrinsicTy intrinsic,
206206
// The `thread` size for the `Kb` dimension is always 1 with a tstride of 1,
207207
// so there can only be 2 layout.thread dims to check here, and we can do a
208208
// simple swap instead of a rotate.
209-
assert(layout.thread.size() == 2 ||
210-
(layout.thread.size() == 3 && layout.thread[2] == 1) &&
211-
"expected inner thread dim to be 1 for blocked LHS or RHS");
209+
assert((layout.thread.size() == 2 ||
210+
(layout.thread.size() == 3 && layout.thread[2] == 1)) &&
211+
"expected inner thread dim to be 1 for blocked LHS or RHS");
212212
if (layout.thread[0] != 1 && layout.thread[1] != 1 &&
213213
layout.tstrides[0] > layout.tstrides[1]) {
214214
std::swap(swizzle.permutation[0], swizzle.permutation[1]);

0 commit comments

Comments
 (0)