summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
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
commit7891d8edf0a06377b4c3019bdb133b21e41de2c7 (patch)
treea673b51918b3dedf2b23ba261a15fdd4eef6b555 /llvm/lib/CodeGen
parent0b490b0d38225221f4926eb1b0cc3eacf81058d4 (diff)
downloadbcm5719-llvm-7891d8edf0a06377b4c3019bdb133b21e41de2c7.tar.gz
bcm5719-llvm-7891d8edf0a06377b4c3019bdb133b21e41de2c7.zip
Use APFloat internally for ConstantFPSDNode.
llvm-svn: 41372
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 7ac8ea81aa6..10ffdc42b15 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/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);
}
//===----------------------------------------------------------------------===//
OpenPOWER on IntegriCloud