diff options
author | Dale Johannesen <dalej@apple.com> | 2007-08-24 20:59:15 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2007-08-24 20:59:15 +0000 |
commit | 7891d8edf0a06377b4c3019bdb133b21e41de2c7 (patch) | |
tree | a673b51918b3dedf2b23ba261a15fdd4eef6b555 /llvm/lib/CodeGen | |
parent | 0b490b0d38225221f4926eb1b0cc3eacf81058d4 (diff) | |
download | bcm5719-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.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 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); } //===----------------------------------------------------------------------===// |