diff --git a/mlir/lib/Dialect/Arithmetic/IR/ArithmeticOps.cpp b/mlir/lib/Dialect/Arithmetic/IR/ArithmeticOps.cpp --- a/mlir/lib/Dialect/Arithmetic/IR/ArithmeticOps.cpp +++ b/mlir/lib/Dialect/Arithmetic/IR/ArithmeticOps.cpp @@ -1594,8 +1594,6 @@ // the compare predicate and sometimes the value. rhsInt is rounded // towards zero at this point. switch (pred) { - default: - llvm_unreachable("Unexpected integer comparison!"); case CmpIPredicate::ne: // (float)int != 4.4 --> true rewriter.replaceOpWithNewOp(op, /*value=*/true, /*width=*/1);