We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3739fd5 commit 23f989aCopy full SHA for 23f989a
mlir/lib/Dialect/SCF/Transforms/BufferizableOpInterfaceImpl.cpp
@@ -1148,11 +1148,9 @@ struct ForeachThreadOpInterface
1148
bool isRepetitiveRegion(Operation *op, unsigned index) const {
1149
auto foreachThreadOp = cast<ForeachThreadOp>(op);
1150
// 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;
+ return !llvm::all_of(foreachThreadOp.getNumThreads(), [](Value v) {
+ return getConstantIntValue(v) == static_cast<int64_t>(1);
+ });
1156
}
1157
};
1158
0 commit comments