Skip to content

Commit a80f4f0

Browse files
committed
Tidy up if/else chain
1 parent 65c4e84 commit a80f4f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Analysis/InstructionSimplify.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6746,9 +6746,9 @@ Value *llvm::simplifyBinaryIntrinsic(Intrinsic::ID IID, Type *ReturnType,
67466746
// maxnum(x, snan) -> qnan
67476747
// minimum(X, nan) -> qnan
67486748
// maximum(X, nan) -> qnan
6749-
if (PropagateSNaN && match(Op1, m_sNaN())) {
6749+
if (PropagateSNaN && match(Op1, m_sNaN()))
67506750
return propagateNaN(cast<Constant>(Op1));
6751-
} else if (match(Op1, m_NaN())) {
6751+
if (match(Op1, m_NaN())) {
67526752
if (PropagateNaN)
67536753
return propagateNaN(cast<Constant>(Op1));
67546754
// In cases like mixed <sNaN, qNaN> vectors, avoid the optimization to

0 commit comments

Comments
 (0)