File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
llvm/lib/Transforms/InstCombine Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -8088,11 +8088,12 @@ Instruction *InstCombinerImpl::visitFCmpInst(FCmpInst &I) {
8088
8088
case FCmpInst::FCMP_OLE:
8089
8089
// Skip optimization: fsub x, y unless guaranteed !isinf(x) ||
8090
8090
// !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))))
8096
8097
break ;
8097
8098
8098
8099
[[fallthrough]];
You can’t perform that action at this time.
0 commit comments