summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorUlrich Weigand <ulrich.weigand@de.ibm.com>2012-10-29 18:35:49 +0000
committerUlrich Weigand <ulrich.weigand@de.ibm.com>2012-10-29 18:35:49 +0000
commite669c930a61dd56891df2f9822966ecb173c8072 (patch)
tree53ff745488557829caca914c70c8635200cd6e69 /include
parent159c735f7b8c4ec441780abcfccbe66f14346543 (diff)
downloadllvm-e669c930a61dd56891df2f9822966ecb173c8072.tar.gz
llvm-e669c930a61dd56891df2f9822966ecb173c8072.tar.bz2
llvm-e669c930a61dd56891df2f9822966ecb173c8072.tar.xz
In various places throughout the code generator, there were special
checks to avoid performing compile-time arithmetic on PPCDoubleDouble. Now that APFloat supports arithmetic on PPCDoubleDouble, those checks are no longer needed, and we can treat the type like any other. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166958 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/SelectionDAGNodes.h3
-rw-r--r--include/llvm/Constants.h3
2 files changed, 0 insertions, 6 deletions
diff --git a/include/llvm/CodeGen/SelectionDAGNodes.h b/include/llvm/CodeGen/SelectionDAGNodes.h
index 2c82875108..362e9afd22 100644
--- a/include/llvm/CodeGen/SelectionDAGNodes.h
+++ b/include/llvm/CodeGen/SelectionDAGNodes.h
@@ -1199,9 +1199,6 @@ public:
/// have to duplicate its logic everywhere it's called.
bool isExactlyValue(double V) const {
bool ignored;
- // convert is not supported on this type
- if (&Value->getValueAPF().getSemantics() == &APFloat::PPCDoubleDouble)
- return false;
APFloat Tmp(V);
Tmp.convert(Value->getValueAPF().getSemantics(),
APFloat::rmNearestTiesToEven, &ignored);
diff --git a/include/llvm/Constants.h b/include/llvm/Constants.h
index b56b9cad11..7f94ef464e 100644
--- a/include/llvm/Constants.h
+++ b/include/llvm/Constants.h
@@ -282,9 +282,6 @@ public:
bool isExactlyValue(double V) const {
bool ignored;
- // convert is not supported on this type
- if (&Val.getSemantics() == &APFloat::PPCDoubleDouble)
- return false;
APFloat FV(V);
FV.convert(Val.getSemantics(), APFloat::rmNearestTiesToEven, &ignored);
return isExactlyValue(FV);