diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2008-11-26 01:11:57 +0000 |
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2008-11-26 01:11:57 +0000 |
| commit | 496b042e2053c6170a9d85f9608a18420627233a (patch) | |
| tree | a6d732a3f9cc13d9d2503b43cd7ec91ea481db8c /llvm/lib/Support/APFloat.cpp | |
| parent | 22d4b885fdc532e68c727c0947755ad07295f6d5 (diff) | |
| download | llvm-496b042e2053c6170a9d85f9608a18420627233a.zip llvm-496b042e2053c6170a9d85f9608a18420627233a.tar.gz llvm-496b042e2053c6170a9d85f9608a18420627233a.tar.bz2 | |
Revert r60042. IndVarSimplify should check if APFloat is PPCDoubleDouble first before trying to convert it to an integer.
llvm-svn: 60072
Diffstat (limited to 'llvm/lib/Support/APFloat.cpp')
| -rw-r--r-- | llvm/lib/Support/APFloat.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/llvm/lib/Support/APFloat.cpp b/llvm/lib/Support/APFloat.cpp index 128fee4..a65e55a 100644 --- a/llvm/lib/Support/APFloat.cpp +++ b/llvm/lib/Support/APFloat.cpp @@ -117,11 +117,6 @@ namespace { && "Compile-time arithmetic does not support these semantics"); } - static inline bool - isArithmeticOk(const llvm::fltSemantics &semantics) { - return semantics.arithmeticOK; - } - /* Return the value of a decimal exponent of the form [+-]ddddddd. @@ -1792,8 +1787,7 @@ APFloat::convertToSignExtendedInteger(integerPart *parts, unsigned int width, const integerPart *src; unsigned int dstPartsCount, truncatedBits; - if (!isArithmeticOk(*semantics)) - return opInvalidOp; + assertArithmeticOK(*semantics); *isExact = false; |
