aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2007-08-24 20:59:15 +0000
committerDale Johannesen <dalej@apple.com>2007-08-24 20:59:15 +0000
commit8bb369b8072c919ef5802f639a52b17620201190 (patch)
tree1d2178de17b30b7c8cb32aa9ccd735771c78033f /lib/CodeGen/SelectionDAG/SelectionDAG.cpp
parentcd406fe1236a1e0a7f210676768ddd3f69e23166 (diff)
Use APFloat internally for ConstantFPSDNode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41372 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 7ac8ea81aa..10ffdc42b1 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -49,7 +49,7 @@ static SDVTList makeVTList(const MVT::ValueType *VTs, unsigned NumVTs) {
/// As such, this method can be used to do an exact bit-for-bit comparison of
/// two floating point values.
bool ConstantFPSDNode::isExactlyValue(double V) const {
- return DoubleToBits(V) == DoubleToBits(Value);
+ return Value == APFloat(V);
}
//===----------------------------------------------------------------------===//