summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/InstCombine/cos-intrinsic.ll
Commit message (Collapse)AuthorAgeFilesLines
* [InstCombine] add tests for llvm.sin(-x); NFCSanjay Patel2018-08-291-82/+0
| | | | | | | Also add a corresponding test for llvm.cos with FMF to make sure that was handled correctly. llvm-svn: 340950
* [PatternMatch] allow vector matches with m_FNegSanjay Patel2018-02-201-7/+2
| | | | llvm-svn: 325642
* [InstCombine] auto-generate full checks; NFCSanjay Patel2018-02-201-41/+47
| | | | llvm-svn: 325639
* InstCombine: Fold cos(-x) -> cos(x)Matt Arsenault2017-01-041-0/+55
| | | | | | Also cos(fabs(x)) -> cos(x) llvm-svn: 291022
* Propagate Undef in llvm.cos IntrinsicSanjoy Das2016-04-081-0/+26
Summary: The llvm cos intrinsic currently does not propagate undef's. This change transforms cos(undef) to null value or 0. There are 2 test cases added as well. Patch by Anna Thomas! Reviewers: sanjoy Subscribers: majnemer, llvm-commits Differential Revision: http://reviews.llvm.org/D18863 llvm-svn: 265825
OpenPOWER on IntegriCloud