Skip to content

Commit 23f989a

Browse files
committed
Apply clang-tidy fixes for readability-simplify-boolean-expr in BufferizableOpInterfaceImpl.cpp (NFC)
1 parent 3739fd5 commit 23f989a

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

mlir/lib/Dialect/SCF/Transforms/BufferizableOpInterfaceImpl.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1148,11 +1148,9 @@ struct ForeachThreadOpInterface
11481148
bool isRepetitiveRegion(Operation *op, unsigned index) const {
11491149
auto foreachThreadOp = cast<ForeachThreadOp>(op);
11501150
// This op is not repetitive if it has just a single thread.
1151-
if (llvm::all_of(foreachThreadOp.getNumThreads(), [](Value v) {
1152-
return getConstantIntValue(v) == static_cast<int64_t>(1);
1153-
}))
1154-
return false;
1155-
return true;
1151+
return !llvm::all_of(foreachThreadOp.getNumThreads(), [](Value v) {
1152+
return getConstantIntValue(v) == static_cast<int64_t>(1);
1153+
});
11561154
}
11571155
};
11581156

0 commit comments

Comments
 (0)