From f134bf5eb1951e46d3cfaf71bd804c824ba57f20 Mon Sep 17 00:00:00 2001 From: Mathieu Fehr Date: Tue, 2 Apr 2024 01:32:24 +0100 Subject: [PATCH] Remove operation that shouldn't have been marked illegal --- .../Arith/Transforms/UnsignedWhenEquivalent.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/mlir/lib/Dialect/Arith/Transforms/UnsignedWhenEquivalent.cpp b/mlir/lib/Dialect/Arith/Transforms/UnsignedWhenEquivalent.cpp index 53f2008324f05..4edce84bafd41 100644 --- a/mlir/lib/Dialect/Arith/Transforms/UnsignedWhenEquivalent.cpp +++ b/mlir/lib/Dialect/Arith/Transforms/UnsignedWhenEquivalent.cpp @@ -125,12 +125,11 @@ struct ArithUnsignedWhenEquivalentPass ConversionTarget target(*ctx); target.addLegalDialect(); - target - .addDynamicallyLegalOp( - [&solver](Operation *op) -> std::optional { - return failed(staticallyNonNegative(solver, op)); - }); + target.addDynamicallyLegalOp( + [&solver](Operation *op) -> std::optional { + return failed(staticallyNonNegative(solver, op)); + }); target.addDynamicallyLegalOp( [&solver](CmpIOp op) -> std::optional { return failed(isCmpIConvertable(solver, op));