diff options
author | Nikita Popov <npopov@redhat.com> | 2024-08-09 15:11:11 +0200 |
---|---|---|
committer | Nikita Popov <npopov@redhat.com> | 2024-08-09 15:12:11 +0200 |
commit | a15de177728ec83f37bdd8f39d4a8f57e95c3d21 (patch) | |
tree | f35f38b9ea53db4fdf6e28bf5f5d2435e06d8e3e /llvm/lib/Analysis/ConstantFolding.cpp | |
parent | 02645d66f93809f7f52b742987f350793136221f (diff) | |
download | llvm-a15de177728ec83f37bdd8f39d4a8f57e95c3d21.zip llvm-a15de177728ec83f37bdd8f39d4a8f57e95c3d21.tar.gz llvm-a15de177728ec83f37bdd8f39d4a8f57e95c3d21.tar.bz2 |
Revert "Enable logf128 constant folding for hosts with 128bit floats (#96287)"
This reverts commit ccb2b011e577e861254f61df9c59494e9e122b38.
Causes buildbot failures, e.g. on ppc64le builders.
Diffstat (limited to 'llvm/lib/Analysis/ConstantFolding.cpp')
-rw-r--r-- | llvm/lib/Analysis/ConstantFolding.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/ConstantFolding.cpp b/llvm/lib/Analysis/ConstantFolding.cpp index 87feb2e..084647b 100644 --- a/llvm/lib/Analysis/ConstantFolding.cpp +++ b/llvm/lib/Analysis/ConstantFolding.cpp @@ -1781,7 +1781,7 @@ Constant *ConstantFoldFP(double (*NativeFP)(double), const APFloat &V, return GetConstantFoldFPValue(Result, Ty); } -#if defined(HAS_IEE754_FLOAT128) +#if defined(HAS_IEE754_FLOAT128) && defined(HAS_LOGF128) Constant *ConstantFoldFP128(float128 (*NativeFP)(float128), const APFloat &V, Type *Ty) { llvm_fenv_clearexcept(); @@ -2114,7 +2114,7 @@ static Constant *ConstantFoldScalarCall1(StringRef Name, if (IntrinsicID == Intrinsic::canonicalize) return constantFoldCanonicalize(Ty, Call, U); -#if defined(HAS_IEE754_FLOAT128) +#if defined(HAS_IEE754_FLOAT128) && defined(HAS_LOGF128) if (Ty->isFP128Ty()) { if (IntrinsicID == Intrinsic::log) { float128 Result = logf128(Op->getValueAPF().convertToQuad()); |