diff options
author | Matt Devereau <matthew.devereau@arm.com> | 2024-05-01 12:18:06 +0000 |
---|---|---|
committer | Matt Devereau <matthew.devereau@arm.com> | 2024-05-01 12:18:39 +0000 |
commit | efce8a05aa4ef0353e73e63d270a22773e090e75 (patch) | |
tree | e1cc34214ce089561e6a6e8f9128d1846edf39dd /llvm/lib/Support/APFloat.cpp | |
parent | 034912d583617a7029c8efaade4422eaa4593f8c (diff) | |
download | llvm-efce8a05aa4ef0353e73e63d270a22773e090e75.zip llvm-efce8a05aa4ef0353e73e63d270a22773e090e75.tar.gz llvm-efce8a05aa4ef0353e73e63d270a22773e090e75.tar.bz2 |
Revert "Constant Fold logf128 calls"
This reverts commit 088aa81a545421933254f19cd3c8914a0373b493.
Diffstat (limited to 'llvm/lib/Support/APFloat.cpp')
-rw-r--r-- | llvm/lib/Support/APFloat.cpp | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/llvm/lib/Support/APFloat.cpp b/llvm/lib/Support/APFloat.cpp index 52bf3b9..0a4f5ac 100644 --- a/llvm/lib/Support/APFloat.cpp +++ b/llvm/lib/Support/APFloat.cpp @@ -3670,15 +3670,6 @@ double IEEEFloat::convertToDouble() const { return api.bitsToDouble(); } -#ifdef HAS_IEE754_FLOAT128 -float128 IEEEFloat::convertToQuad() const { - assert(semantics == (const llvm::fltSemantics *)&semIEEEquad && - "Float semantics are not IEEEquads"); - APInt api = bitcastToAPInt(); - return api.bitsToQuad(); -} -#endif - /// Integer bit is explicit in this format. Intel hardware (387 and later) /// does not support these bit patterns: /// exponent = all 1's, integer bit 0, significand 0 ("pseudoinfinity") @@ -5274,21 +5265,6 @@ double APFloat::convertToDouble() const { return Temp.getIEEE().convertToDouble(); } -#ifdef HAS_IEE754_FLOAT128 -float128 APFloat::convertToQuad() const { - if (&getSemantics() == (const llvm::fltSemantics *)&semIEEEquad) - return getIEEE().convertToQuad(); - assert(getSemantics().isRepresentableBy(semIEEEquad) && - "Float semantics is not representable by IEEEquad"); - APFloat Temp = *this; - bool LosesInfo; - opStatus St = Temp.convert(semIEEEquad, rmNearestTiesToEven, &LosesInfo); - assert(!(St & opInexact) && !LosesInfo && "Unexpected imprecision"); - (void)St; - return Temp.getIEEE().convertToQuad(); -} -#endif - float APFloat::convertToFloat() const { if (&getSemantics() == (const llvm::fltSemantics *)&semIEEEsingle) return getIEEE().convertToFloat(); |