Skip to content

Commit bf96e74

Browse files
committed
Apply de-morgan
1 parent e02d070 commit bf96e74

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2846,10 +2846,10 @@ static Instruction *foldSelectWithFCmpToFabs(SelectInst &SI,
28462846
// of NAN, but IEEE-754 specifies the signbit of NAN values with
28472847
// fneg/fabs operations.
28482848
if (!SI.hasNoSignedZeros() &&
2849-
!(SI.hasOneUse() && ignoreSignBitOfZero(*SI.use_begin())))
2849+
(!SI.hasOneUse() || !ignoreSignBitOfZero(*SI.use_begin())))
28502850
return nullptr;
28512851
if (!SI.hasNoNaNs() &&
2852-
!(SI.hasOneUse() && ignoreSignBitOfNaN(*SI.use_begin())))
2852+
(!SI.hasOneUse() || !ignoreSignBitOfNaN(*SI.use_begin())))
28532853
return nullptr;
28542854

28552855
if (Swap)

0 commit comments

Comments
 (0)