Skip to content

Commit 2f9323b

Browse files
authored
DAG: Stop forcibly adding nsz to expanded minnum/maxnum (#139615)
1 parent 619ac3d commit 2f9323b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8490,9 +8490,7 @@ TargetLowering::createSelectForFMINNUM_FMAXNUM(SDNode *Node,
84908490
SDValue Op1 = Node->getOperand(0);
84918491
SDValue Op2 = Node->getOperand(1);
84928492
SDValue SelCC = DAG.getSelectCC(SDLoc(Node), Op1, Op2, Op1, Op2, Pred);
8493-
// Copy FMF flags, but always set the no-signed-zeros flag
8494-
// as this is implied by the FMINNUM/FMAXNUM semantics.
8495-
SelCC->setFlags(Node->getFlags() | SDNodeFlags::NoSignedZeros);
8493+
SelCC->setFlags(Node->getFlags());
84968494
return SelCC;
84978495
}
84988496

0 commit comments

Comments
 (0)