Changeset View
Changeset View
Standalone View
Standalone View
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
Context not available. | |||||
return DAG.getNode(ISD::FABS, SDLoc(N), VT, N0); | return DAG.getNode(ISD::FABS, SDLoc(N), VT, N0); | ||||
// copysign(x, copysign(y,z)) -> copysign(x, z) | // copysign(x, copysign(y,z)) -> copysign(x, z) | ||||
if (N1.getOpcode() == ISD::FCOPYSIGN) | if (DAG.getTarget().Options.UnsafeFPMath && | ||||
N1.getOpcode() == ISD::FCOPYSIGN) | |||||
return DAG.getNode(ISD::FCOPYSIGN, SDLoc(N), VT, | return DAG.getNode(ISD::FCOPYSIGN, SDLoc(N), VT, | ||||
N0, N1.getOperand(1)); | N0, N1.getOperand(1)); | ||||
Context not available. |