diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2015-03-09 18:35:18 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2015-03-09 18:35:18 +0000 |
commit | 37dce44f73be26ea0f3f327c279c6003cad5720d (patch) | |
tree | 672e995eaa6326dbf06873f77ff6bc1f964696f4 /llvm/lib/Analysis/ConstantFolding.cpp | |
parent | bd8d0f31088cd95b72a8f6d664b8c3d6af6d7f12 (diff) | |
download | llvm-37dce44f73be26ea0f3f327c279c6003cad5720d.zip llvm-37dce44f73be26ea0f3f327c279c6003cad5720d.tar.gz llvm-37dce44f73be26ea0f3f327c279c6003cad5720d.tar.bz2 |
Drop the hacks used for partial C99 math libraries.
All supported platforms have half-way decent C99 support.
llvm-svn: 231679
Diffstat (limited to 'llvm/lib/Analysis/ConstantFolding.cpp')
-rw-r--r-- | llvm/lib/Analysis/ConstantFolding.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/llvm/lib/Analysis/ConstantFolding.cpp b/llvm/lib/Analysis/ConstantFolding.cpp index fcafb41..5582bfb 100644 --- a/llvm/lib/Analysis/ConstantFolding.cpp +++ b/llvm/lib/Analysis/ConstantFolding.cpp @@ -1451,26 +1451,16 @@ static Constant *ConstantFoldScalarCall(StringRef Name, unsigned IntrinsicID, default: break; case Intrinsic::fabs: return ConstantFoldFP(fabs, V, Ty); -#if HAVE_LOG2 case Intrinsic::log2: return ConstantFoldFP(log2, V, Ty); -#endif -#if HAVE_LOG case Intrinsic::log: return ConstantFoldFP(log, V, Ty); -#endif -#if HAVE_LOG10 case Intrinsic::log10: return ConstantFoldFP(log10, V, Ty); -#endif -#if HAVE_EXP case Intrinsic::exp: return ConstantFoldFP(exp, V, Ty); -#endif -#if HAVE_EXP2 case Intrinsic::exp2: return ConstantFoldFP(exp2, V, Ty); -#endif case Intrinsic::floor: return ConstantFoldFP(floor, V, Ty); case Intrinsic::ceil: |