Skip to content

Commit 6fb77dc

Browse files
committed
Revert change in isKnownNeverNaN
1 parent 43bf1aa commit 6fb77dc

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5869,12 +5869,6 @@ bool SelectionDAG::isKnownNeverNaN(SDValue Op, bool SNaN,
58695869
? APInt::getAllOnes(VT.getVectorNumElements())
58705870
: APInt(1, 1);
58715871

5872-
// If all users of this operand is annotated with nnan, we can assume
5873-
// this operand is not NaN, since nnan also affects inputs.
5874-
if (llvm::all_of(Op->users(),
5875-
[](const SDNode *N) { return N->getFlags().hasNoNaNs(); }))
5876-
return true;
5877-
58785872
return isKnownNeverNaN(Op, DemandedElts, SNaN, Depth);
58795873
}
58805874

0 commit comments

Comments
 (0)