File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
mlir/lib/Dialect/LLVMIR/IR Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -1565,12 +1565,12 @@ LogicalResult NVVM::ClusterLaunchControlQueryCancelOp::verify() {
15651565
15661566LogicalResult 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) {
You can’t perform that action at this time.
0 commit comments