diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2017-03-09 01:36:39 +0000 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2017-03-09 01:36:39 +0000 |
commit | 9a3fd8752388b7888e8be7072e3b5abf6f4cc9e8 (patch) | |
tree | c82664e50de066824c004ce3d0edc9bac04d56d1 /llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | |
parent | bf84c18cc142b2b83ae4de59398f5264c5a57d76 (diff) | |
download | bcm5719-llvm-9a3fd8752388b7888e8be7072e3b5abf6f4cc9e8.tar.gz bcm5719-llvm-9a3fd8752388b7888e8be7072e3b5abf6f4cc9e8.zip |
DAG: Check no signed zeros instead of unsafe math attribute
llvm-svn: 297354
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 8bed34497f6..ba8f12e8d31 100644 --- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -9142,7 +9142,7 @@ SDValue DAGCombiner::visitFADD(SDNode *N) { GetNegatedExpression(N0, DAG, LegalOperations), Flags); // FIXME: Auto-upgrade the target/function-level option. - if (Options.UnsafeFPMath || N->getFlags()->hasNoSignedZeros()) { + if (Options.NoSignedZerosFPMath || N->getFlags()->hasNoSignedZeros()) { // fold (fadd A, 0) -> A if (ConstantFPSDNode *N1C = isConstOrConstSplatFP(N1)) if (N1C->isZero()) @@ -9285,7 +9285,7 @@ SDValue DAGCombiner::visitFSUB(SDNode *N) { GetNegatedExpression(N1, DAG, LegalOperations), Flags); // FIXME: Auto-upgrade the target/function-level option. - if (Options.UnsafeFPMath || N->getFlags()->hasNoSignedZeros()) { + if (Options.NoSignedZerosFPMath || N->getFlags()->hasNoSignedZeros()) { // (fsub 0, B) -> -B if (N0CFP && N0CFP->isZero()) { if (isNegatibleForFree(N1, LegalOperations, TLI, &Options)) |