Skip to content

Commit dc2092d

Browse files
committed
address comments
1 parent d39a26f commit dc2092d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

mlir/lib/Dialect/LLVMIR/IR/NVVMDialect.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1565,12 +1565,12 @@ LogicalResult NVVM::ClusterLaunchControlQueryCancelOp::verify() {
15651565

15661566
LogicalResult NVVM::ReduxOp::verify() {
15671567
mlir::Type reduxType = getType();
1568-
if (!reduxType.isF32()) {
1569-
if (getAbs())
1570-
return emitOpError("abs attribute is supported only for f32 type");
1571-
if (getNan())
1572-
return emitOpError("nan attribute is supported only for f32 type");
1573-
}
1568+
1569+
if (!reduxType.isF32() && getAbs())
1570+
return emitOpError("abs attribute is supported only for f32 type");
1571+
1572+
if (!reduxType.isF32() && getNan())
1573+
return emitOpError("nan attribute is supported only for f32 type");
15741574

15751575
NVVM::ReduxKind kind = getKind();
15761576
switch (kind) {

0 commit comments

Comments
 (0)