summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/InstCombine/copysign.ll
Commit message (Collapse)AuthorAgeFilesLines
* [InstCombine] remove stale comment on test; NFCSanjay Patel2019-12-301-1/+1
|
* [InstCombine] propagate sign argument through nested copysignsSanjay Patel2019-12-301-2/+1
| | | | | This is another optimization suggested in PR44153: https://bugs.llvm.org/show_bug.cgi?id=44153
* [InstCombine] add test for copysign; NFCSanjay Patel2019-12-231-0/+14
|
* [InstCombine] enhance fold for copysign with known sign argSanjay Patel2019-12-221-6/+4
| | | | | This is another optimization suggested in PRPR44153: https://bugs.llvm.org/show_bug.cgi?id=44153
* [InstCombine] add tests for copysign; NFCSanjay Patel2019-12-181-0/+23
|
* [InstCombine] fold copysign with constant sign argument to (fneg+)fabsSanjay Patel2019-12-021-8/+10
| | | | | | | | | | | | | | | If the sign of the sign argument is known (this could be extended to use ValueTracking), then we can use fneg+fabs to clear/set the sign bit of the magnitude argument. http://llvm.org/docs/LangRef.html#llvm-copysign-intrinsic This transform is already done in DAGCombiner, but we can do it sooner in IR as suggested in PR44153: https://bugs.llvm.org/show_bug.cgi?id=44153 We have effectively no analysis for copysign in IR, so we are taking the unusual step of increasing the number of IR instructions for the negative constant case. Differential Revision: https://reviews.llvm.org/D70792
* [InstCombine] add tests for copysign; NFCSanjay Patel2019-11-271-0/+41
|
* [ConstFolding] move tests for copysign; NFCSanjay Patel2019-11-261-49/+0
| | | | InstCombine doesn't have any transforms for copysign currently.
* Revert "Temporarily Revert "Add basic loop fusion pass.""Eric Christopher2019-04-171-0/+49
| | | | | | | | The reversion apparently deleted the test/Transforms directory. Will be re-reverting again. llvm-svn: 358552
* Temporarily Revert "Add basic loop fusion pass."Eric Christopher2019-04-171-49/+0
| | | | | | | | As it's causing some bot failures (and per request from kbarton). This reverts commit r358543/ab70da07286e618016e78247e4a24fcb84077fda. llvm-svn: 358546
* Allow constant folding of copysignKarthik Bhat2014-03-061-0/+49
llvm-svn: 203076
OpenPOWER on IntegriCloud