Skip to content

Commit

Permalink
Apply clang-tidy fixes for readability-simplify-boolean-expr in Buffe…
Browse files Browse the repository at this point in the history
…rizableOpInterfaceImpl.cpp (NFC)
  • Loading branch information
joker-eph committed Oct 12, 2022
1 parent 3739fd5 commit 23f989a
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1148,11 +1148,9 @@ struct ForeachThreadOpInterface
bool isRepetitiveRegion(Operation *op, unsigned index) const {
auto foreachThreadOp = cast<ForeachThreadOp>(op);
// This op is not repetitive if it has just a single thread.
if (llvm::all_of(foreachThreadOp.getNumThreads(), [](Value v) {
return getConstantIntValue(v) == static_cast<int64_t>(1);
}))
return false;
return true;
return !llvm::all_of(foreachThreadOp.getNumThreads(), [](Value v) {
return getConstantIntValue(v) == static_cast<int64_t>(1);
});
}
};

Expand Down

0 comments on commit 23f989a

Please sign in to comment.