Skip to content

Commit a18a17f

Browse files
committed
Fixes clang-format
1 parent d65b59f commit a18a17f

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8088,11 +8088,12 @@ Instruction *InstCombinerImpl::visitFCmpInst(FCmpInst &I) {
80888088
case FCmpInst::FCMP_OLE:
80898089
// Skip optimization: fsub x, y unless guaranteed !isinf(x) ||
80908090
// !isinf(y).
8091-
if (!LHSI->hasOneUse() || (!LHSI->hasNoNaNs() && !LHSI->hasNoInfs() &&
8092-
!isKnownNeverInfinity(LHSI->getOperand(1), /*Depth=*/0,
8093-
getSimplifyQuery().getWithInstruction(&I)) &&
8094-
!isKnownNeverInfinity(LHSI->getOperand(0), /*Depth=*/0,
8095-
getSimplifyQuery().getWithInstruction(&I))))
8091+
if (!LHSI->hasOneUse() ||
8092+
(!LHSI->hasNoNaNs() && !LHSI->hasNoInfs() &&
8093+
!isKnownNeverInfinity(LHSI->getOperand(1), /*Depth=*/0,
8094+
getSimplifyQuery().getWithInstruction(&I)) &&
8095+
!isKnownNeverInfinity(LHSI->getOperand(0), /*Depth=*/0,
8096+
getSimplifyQuery().getWithInstruction(&I))))
80968097
break;
80978098

80988099
[[fallthrough]];

0 commit comments

Comments
 (0)