summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/InstSimplify/log2-intrinsic.ll
Commit message (Collapse)AuthorAgeFilesLines
* [InstSimplify] consolidate tests for log-exp inverse foldsSanjay Patel2018-02-121-71/+0
| | | | | | | | | | | Some tests didn't add much value because we already show stronger constraints for the folds in other tests, so the weaker versions were deleted. Moved the remaining tests into 1 file because the folds are very similar and handled from 1 place in the code. llvm-svn: 324961
* [InstSimplify] Missed optimization in math expression: squashing exp(log), ↵Dmitry Venikov2018-01-031-0/+71
log(exp) Summary: This patch enables folding following expressions under -ffast-math flag: exp(log(x)) -> x, exp2(log2(x)) -> x, log(exp(x)) -> x, log2(exp2(x)) -> x Reviewers: spatel, hfinkel, davide Reviewed By: spatel, hfinkel, davide Subscribers: scanon, llvm-commits Differential Revision: https://reviews.llvm.org/D41381 llvm-svn: 321710
OpenPOWER on IntegriCloud