Skip to content

Commit 3a696e0

Browse files
arsenmjayfoad
authored andcommitted
or not and
Co-authored-by: Jay Foad <[email protected]>
1 parent c8ab52c commit 3a696e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8086,7 +8086,7 @@ Instruction *InstCombinerImpl::visitFCmpInst(FCmpInst &I) {
80868086
case FCmpInst::FCMP_OEQ:
80878087
case FCmpInst::FCMP_OGE:
80888088
case FCmpInst::FCMP_OLE:
8089-
// Skip optimization: fsub x, y unless guaranteed !isinf(x) &&
8089+
// Skip optimization: fsub x, y unless guaranteed !isinf(x) ||
80908090
// !isinf(y).
80918091
if (!LHSI->hasNoNaNs() && !LHSI->hasNoInfs() &&
80928092
!isKnownNeverInfinity(LHSI->getOperand(1), /*Depth=*/0,

0 commit comments

Comments
 (0)