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 4e29725 commit 06b6eacCopy full SHA for 06b6eac
mlir/lib/Dialect/Affine/IR/AffineOps.cpp
@@ -1211,9 +1211,8 @@ static LogicalResult replaceAffineDelinearizeIndexInverseExpression(
1211
if (asResult.getOwner() == delinOp.getOperation())
1212
resToExpr[asResult.getResultNumber()] = getAffineSymbolExpr(pos, ctx);
1213
}
1214
- if (llvm::any_of(resToExpr, [](auto e) { return e == AffineExpr(); })) {
+ if (llvm::is_contained(resToExpr, AffineExpr()))
1215
return failure();
1216
- }
1217
1218
bool isDimReplacement = llvm::all_of(resToExpr, llvm::IsaPred<AffineDimExpr>);
1219
int64_t stride = 1;
0 commit comments