@@ -7492,7 +7492,6 @@ SDValue TargetLowering::getNegatedExpression(SDValue Op, SelectionDAG &DAG,
7492
7492
// Pre-increment recursion depth for use in recursive calls.
7493
7493
++Depth;
7494
7494
const SDNodeFlags Flags = Op->getFlags ();
7495
- const TargetOptions &Options = DAG.getTarget ().Options ;
7496
7495
EVT VT = Op.getValueType ();
7497
7496
unsigned Opcode = Op.getOpcode ();
7498
7497
@@ -7572,7 +7571,7 @@ SDValue TargetLowering::getNegatedExpression(SDValue Op, SelectionDAG &DAG,
7572
7571
return DAG.getBuildVector (VT, DL, Ops);
7573
7572
}
7574
7573
case ISD::FADD: {
7575
- if (!Options. NoSignedZerosFPMath && ! Flags.hasNoSignedZeros ())
7574
+ if (!Flags.hasNoSignedZeros ())
7576
7575
break ;
7577
7576
7578
7577
// After operation legalization, it might not be legal to create new FSUBs.
@@ -7617,7 +7616,7 @@ SDValue TargetLowering::getNegatedExpression(SDValue Op, SelectionDAG &DAG,
7617
7616
}
7618
7617
case ISD::FSUB: {
7619
7618
// We can't turn -(A-B) into B-A when we honor signed zeros.
7620
- if (!Options. NoSignedZerosFPMath && ! Flags.hasNoSignedZeros ())
7619
+ if (!Flags.hasNoSignedZeros ())
7621
7620
break ;
7622
7621
7623
7622
SDValue X = Op.getOperand (0 ), Y = Op.getOperand (1 );
@@ -7678,7 +7677,7 @@ SDValue TargetLowering::getNegatedExpression(SDValue Op, SelectionDAG &DAG,
7678
7677
}
7679
7678
case ISD::FMA:
7680
7679
case ISD::FMAD: {
7681
- if (!Options. NoSignedZerosFPMath && ! Flags.hasNoSignedZeros ())
7680
+ if (!Flags.hasNoSignedZeros ())
7682
7681
break ;
7683
7682
7684
7683
SDValue X = Op.getOperand (0 ), Y = Op.getOperand (1 ), Z = Op.getOperand (2 );
@@ -8797,7 +8796,6 @@ SDValue TargetLowering::expandFMINIMUMNUM_FMAXIMUMNUM(SDNode *Node,
8797
8796
EVT VT = Node->getValueType (0 );
8798
8797
EVT CCVT = getSetCCResultType (DAG.getDataLayout (), *DAG.getContext (), VT);
8799
8798
bool IsMax = Opc == ISD::FMAXIMUMNUM;
8800
- const TargetOptions &Options = DAG.getTarget ().Options ;
8801
8799
SDNodeFlags Flags = Node->getFlags ();
8802
8800
8803
8801
unsigned NewOp =
@@ -8858,8 +8856,8 @@ SDValue TargetLowering::expandFMINIMUMNUM_FMAXIMUMNUM(SDNode *Node,
8858
8856
// TODO: We need quiet sNaN if strictfp.
8859
8857
8860
8858
// Fixup signed zero behavior.
8861
- if (Options. NoSignedZerosFPMath || Flags. hasNoSignedZeros ( ) ||
8862
- DAG.isKnownNeverZeroFloat (LHS) || DAG. isKnownNeverZeroFloat ( RHS)) {
8859
+ if (Flags. hasNoSignedZeros () || DAG. isKnownNeverZeroFloat (LHS ) ||
8860
+ DAG.isKnownNeverZeroFloat (RHS)) {
8863
8861
return MinMax;
8864
8862
}
8865
8863
SDValue TestZero =
0 commit comments