diff options
author | Michael Berg <michael_c_berg@apple.com> | 2019-07-31 21:57:28 +0000 |
---|---|---|
committer | Michael Berg <michael_c_berg@apple.com> | 2019-07-31 21:57:28 +0000 |
commit | 005d705d4392d320244cfe9b1d5fdb6d02bdcd68 (patch) | |
tree | d90635ecb54ebbd19a597be27071b1ad831f0c32 /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | |
parent | f8e7b536571e7abeefcb407297df2641a5a80d35 (diff) | |
download | bcm5719-llvm-005d705d4392d320244cfe9b1d5fdb6d02bdcd68.tar.gz bcm5719-llvm-005d705d4392d320244cfe9b1d5fdb6d02bdcd68.zip |
Migrate some more fadd and fsub cases away from UnsafeFPMath control to utilize NoSignedZerosFPMath options control
Summary: Honoring no signed zeroes is also available as a user control through clang separately regardless of fastmath or UnsafeFPMath context, DAG guards should reflect this context.
Reviewers: spatel, arsenm, hfinkel, wristow, craig.topper
Reviewed By: spatel
Subscribers: rampitec, foad, nhaehnle, wuzish, nemanjai, jvesely, wdng, javed.absar, MaskRay, jsji
Differential Revision: https://reviews.llvm.org/D65170
llvm-svn: 367486
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index c1d98a29d63..2520de49efb 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -4630,7 +4630,7 @@ SDValue SelectionDAG::getNode(unsigned Opcode, const SDLoc &DL, EVT VT, return getUNDEF(VT); // -(X-Y) -> (Y-X) is unsafe because when X==Y, -0.0 != +0.0 - if ((getTarget().Options.UnsafeFPMath || Flags.hasNoSignedZeros()) && + if ((getTarget().Options.NoSignedZerosFPMath || Flags.hasNoSignedZeros()) && OpOpcode == ISD::FSUB) return getNode(ISD::FSUB, DL, VT, Operand.getOperand(1), Operand.getOperand(0), Flags); |