Enable constant propagation for more math functions
authorErik Schnetter <schnetter@gmail.com>
Thu, 27 Aug 2015 19:56:57 +0000 (19:56 +0000)
committerErik Schnetter <schnetter@gmail.com>
Thu, 27 Aug 2015 19:56:57 +0000 (19:56 +0000)
commit742f5d8f37c26df6c5f1bf27e258a038c757bb07
tree32852bb555964f5c9387423625fa1b06297da39f
parente34ade50ea4f5eb9a7a7f716b3153c39783a7981
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@246194 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ConstantFolding.cpp
test/Transforms/ConstProp/calls.ll