diff options
author | Evan Cheng <evan.cheng@apple.com> | 2010-07-15 22:07:12 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2010-07-15 22:07:12 +0000 |
commit | 55f0c6b9fc7e97429897191d3ab170281cd39fdf (patch) | |
tree | 350533241373cedd887bda96676a912a2810abe5 /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | |
parent | ec624b2d19a976388490ebc5d8ca81f81fd16602 (diff) | |
download | bcm5719-llvm-55f0c6b9fc7e97429897191d3ab170281cd39fdf.tar.gz bcm5719-llvm-55f0c6b9fc7e97429897191d3ab170281cd39fdf.zip |
Split -enable-finite-only-fp-math to two options:
-enable-no-nans-fp-math and -enable-no-infs-fp-math. All of the current codegen fp math optimizations only care whether the fp arithmetics arguments and results can never be NaN.
llvm-svn: 108465
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 e83a0346b53..27d7a829d9f 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -2236,7 +2236,7 @@ unsigned SelectionDAG::ComputeNumSignBits(SDValue Op, unsigned Depth) const{ bool SelectionDAG::isKnownNeverNaN(SDValue Op) const { // If we're told that NaNs won't happen, assume they won't. - if (FiniteOnlyFPMath()) + if (NoNaNsFPMath) return true; // If the value is a constant, we can obviously see if it is a NaN or not. |