Allow constfolding of llvm.sin.* and llvm.cos.* intrinsics
authorKarthik Bhat <kv.bhat@samsung.com>
Wed, 8 Jul 2015 03:55:47 +0000 (03:55 +0000)
committerKarthik Bhat <kv.bhat@samsung.com>
Wed, 8 Jul 2015 03:55:47 +0000 (03:55 +0000)
commitd9dffa6b3cd91e3acf6961b8b56924abd21d7147
tree37a4031dee4190dd94786c0d0efbceb5f5a0db28
parent78cca47fc69c575d13f911391eabc7424e3b8b44
Allow constfolding of llvm.sin.* and llvm.cos.* intrinsics
This patch const folds llvm.sin.* and llvm.cos.* intrinsics whenever feasible.

Differential Revision: http://reviews.llvm.org/D10836

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