Enable constant propagation for more math functions
authorErik Schnetter <schnetter@gmail.com>
Thu, 27 Aug 2015 18:56:23 +0000 (18:56 +0000)
committerErik Schnetter <schnetter@gmail.com>
Thu, 27 Aug 2015 18:56:23 +0000 (18:56 +0000)
commit75e205d68223e849ef6f4889dee63adb093ef9d9
tree08f33b1e0c9d729ff2861f1a7f2a7bab8f939dd9
parent38941a6a2067022a99d14daf0c8564ce5a0c131e
Enable constant propagation for more math functions

Constant propagation for single precision math functions (such as
tanf) is already working, but was not enabled. This patch enables
these for many single-precision functions, and adds respective test
cases.

Newly handled functions: acosf asinf atanf atan2f ceilf coshf expf
exp2f fabsf floorf fmodf logf log10f powf sinhf tanf tanhf

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@246186 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ConstantFolding.cpp
test/Transforms/ConstProp/calls.ll