Skip to content

Commit 06b6eac

Browse files
committed
Review nit
1 parent 4e29725 commit 06b6eac

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mlir/lib/Dialect/Affine/IR/AffineOps.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1211,9 +1211,8 @@ static LogicalResult replaceAffineDelinearizeIndexInverseExpression(
12111211
if (asResult.getOwner() == delinOp.getOperation())
12121212
resToExpr[asResult.getResultNumber()] = getAffineSymbolExpr(pos, ctx);
12131213
}
1214-
if (llvm::any_of(resToExpr, [](auto e) { return e == AffineExpr(); })) {
1214+
if (llvm::is_contained(resToExpr, AffineExpr()))
12151215
return failure();
1216-
}
12171216

12181217
bool isDimReplacement = llvm::all_of(resToExpr, llvm::IsaPred<AffineDimExpr>);
12191218
int64_t stride = 1;

0 commit comments

Comments
 (0)