Skip to content

Commit 7c1b38b

Browse files
committed
Remove a can't-happen match failure
1 parent 864392b commit 7c1b38b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

mlir/lib/Dialect/Arith/Transforms/ExpandOps.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -657,11 +657,7 @@ struct ScalingExtFOpConverter : public OpRewritePattern<arith::ScalingExtFOp> {
657657
scaleOperand = b.create<arith::TruncFOp>(scaleTy, scaleOperand, nullptr,
658658
op.getFastmathAttr());
659659
}
660-
if (!llvm::isa<Float8E8M0FNUType>(scaleETy)) {
661-
return rewriter.notifyMatchFailure(
662-
op, "scaling_extf is using scales of type which can not be converted "
663-
"to f8E8M0FNU");
664-
}
660+
665661
Type resultTy = op.getType();
666662
// extf on scale will essentially create floating point number
667663
// of type resulTy that is 2^scale and will also propagate NaNs

0 commit comments

Comments
 (0)