Skip to content

Commit d822206

Browse files
committed
Format
1 parent 35a039b commit d822206

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

mlir/lib/Dialect/Arith/IR/ArithOps.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1521,9 +1521,12 @@ OpFoldResult arith::TruncFOp::fold(FoldAdaptor adaptor) {
15211521
if (auto extOp = getOperand().getDefiningOp<arith::ExtFOp>()) {
15221522
Value src = extOp.getIn();
15231523
auto srcType = cast<FloatType>(getElementTypeOrSelf(src.getType()));
1524-
auto intermediateType = cast<FloatType>(getElementTypeOrSelf(extOp.getType()));
1524+
auto intermediateType =
1525+
cast<FloatType>(getElementTypeOrSelf(extOp.getType()));
15251526
// Check if the srcType is representable in the intermediateType
1526-
if(llvm::APFloatBase::isRepresentableBy(srcType.getFloatSemantics(), intermediateType.getFloatSemantics())) {
1527+
if (llvm::APFloatBase::isRepresentableBy(
1528+
srcType.getFloatSemantics(),
1529+
intermediateType.getFloatSemantics())) {
15271530
// truncf(extf(a)) -> truncf(a)
15281531
if (srcType.getWidth() > resElemType.getWidth()) {
15291532
setOperand(src);

0 commit comments

Comments
 (0)