summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2007-08-25 22:10:57 +0000
committerDale Johannesen <dalej@apple.com>2007-08-25 22:10:57 +0000
commit2cfcf70f822cb1df02b4be1eb78f026bb0a7ff32 (patch)
tree35dbc7469f953d833a5fd24e302de9c3276b3288 /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
parent1bc6fac5c6d20b666fc8f54e6633b7149b06aa73 (diff)
downloadbcm5719-llvm-2cfcf70f822cb1df02b4be1eb78f026bb0a7ff32.tar.gz
bcm5719-llvm-2cfcf70f822cb1df02b4be1eb78f026bb0a7ff32.zip
Add APFloat interface to ConstantFPSDNode. Change
over uses in DAGCombiner. Fix interfaces to work with APFloats. llvm-svn: 41407
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 6155ee160c2..4bd07b60b7f 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -48,8 +48,8 @@ static SDVTList makeVTList(const MVT::ValueType *VTs, unsigned NumVTs) {
/// it returns true for things that are clearly not equal, like -0.0 and 0.0.
/// 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 Value.bitwiseIsEqual(APFloat(V));
+bool ConstantFPSDNode::isExactlyValue(APFloat V) const {
+ return Value.bitwiseIsEqual(V);
}
//===----------------------------------------------------------------------===//
@@ -669,7 +669,6 @@ SDOperand SelectionDAG::getConstant(uint64_t Val, MVT::ValueType VT, bool isT) {
return SDOperand(N, 0);
}
-
SDOperand SelectionDAG::getConstantFP(double Val, MVT::ValueType VT,
bool isTarget) {
assert(MVT::isFloatingPoint(VT) && "Cannot create integer FP constant!");
OpenPOWER on IntegriCloud