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 298ace7 commit db9e307Copy full SHA for db9e307
mlir/lib/Dialect/Tosa/Transforms/TosaProfileCompliance.cpp
@@ -444,9 +444,8 @@ LogicalResult TosaProfileCompliance::checkProfileOrExtension(
444
// Ensure the profile inference match the profile knowledge of the
445
// specification.
446
for (const auto &cands : specRequiredModeSet) {
447
- for (size_t i = 0; i < opRequiredMode.size(); i++) {
448
- if (std::find(cands.begin(), cands.end(), opRequiredMode[i]) ==
449
- cands.end()) {
+ for (const auto &mode : opRequiredMode) {
+ if (!llvm::is_contained(cands, mode)) {
450
op->emitOpError() << "illegal: requires ["
451
<< llvm::join(stringifyProfile<T>(opRequiredMode),
452
", ")
0 commit comments