diff options
Diffstat (limited to 'mlir/lib/Dialect/Arithmetic/Transforms/ExpandOps.cpp')
| -rw-r--r-- | mlir/lib/Dialect/Arithmetic/Transforms/ExpandOps.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/Dialect/Arithmetic/Transforms/ExpandOps.cpp b/mlir/lib/Dialect/Arithmetic/Transforms/ExpandOps.cpp index b4bff0f2de95..afe7aab99af3 100644 --- a/mlir/lib/Dialect/Arithmetic/Transforms/ExpandOps.cpp +++ b/mlir/lib/Dialect/Arithmetic/Transforms/ExpandOps.cpp @@ -159,7 +159,7 @@ public: Location loc = op.getLoc(); // If any operand is NaN, 'cmp' will be true (and 'select' returns 'lhs'). static_assert(pred == arith::CmpFPredicate::UGT || - pred == arith::CmpFPredicate::ULT, + pred == arith::CmpFPredicate::ULT, "pred must be either UGT or ULT"); Value cmp = rewriter.create<arith::CmpFOp>(loc, pred, lhs, rhs); Value select = rewriter.create<arith::SelectOp>(loc, cmp, lhs, rhs); |
