Eric Christopher
598198edbc
Revert "Temporarily Revert "Add basic loop fusion pass.""
...
The reversion apparently deleted the test/Transforms directory.
Will be re-reverting again.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@358552 91177308-0d34-0410-b5e6-96231b3b80d8
2019-04-17 04:52:47 +00:00
Eric Christopher
02cc44c1b9
Temporarily Revert "Add basic loop fusion pass."
...
As it's causing some bot failures (and per request from kbarton).
This reverts commit r358543/ab70da07286e618016e78247e4a24fcb84077fda.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@358546 91177308-0d34-0410-b5e6-96231b3b80d8
2019-04-17 02:12:23 +00:00
Volkan Keles
b5378372b8
[InstCombine] Combine nested min/max intrinsics with constants
...
Reviewers: arsenm, spatel
Reviewed By: spatel
Subscribers: lebedev.ri, wdng, llvm-commits
Differential Revision: https://reviews.llvm.org/D53774
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@345751 91177308-0d34-0410-b5e6-96231b3b80d8
2018-10-31 17:50:52 +00:00
Volkan Keles
cbcde934b3
[InstCombine] Add preliminary tests for nested min/max combines. NFC
...
Summary: As requested in D53774.
Reviewers: spatel
Reviewed By: spatel
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D53875
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@345616 91177308-0d34-0410-b5e6-96231b3b80d8
2018-10-30 17:51:14 +00:00
Sanjay Patel
54b09599fc
[InstSimplify] move minnum/maxnum with Inf folds from instcombine
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@339396 91177308-0d34-0410-b5e6-96231b3b80d8
2018-08-09 22:20:44 +00:00
Sanjay Patel
5ab217ce42
[InstSimplify] move minnum/maxnum with common op fold from instcombine
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@339144 91177308-0d34-0410-b5e6-96231b3b80d8
2018-08-07 14:36:27 +00:00
Sanjay Patel
1b7b25a023
[InstSimplify] move misplaced minnum/maxnum tests; NFC
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@339141 91177308-0d34-0410-b5e6-96231b3b80d8
2018-08-07 14:12:08 +00:00
Sanjay Patel
e1c9b76cd3
[InstSimplify] move minnum/maxnum with undef fold from instcombine
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@338719 91177308-0d34-0410-b5e6-96231b3b80d8
2018-08-02 14:33:40 +00:00
Sanjay Patel
5ea9eaae86
[InstSimplify] move minnum/maxnum with same arg fold from instcombine
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@338652 91177308-0d34-0410-b5e6-96231b3b80d8
2018-08-01 23:05:55 +00:00
Sanjay Patel
87d94cc8a7
[InstCombine] add folds for minnum(-a, -b) --> -maxnum(a, b)
...
This is similar to what we do for integer min/max with 'not'
ops (rL321882).
This should fix:
https://bugs.llvm.org/show_bug.cgi?id=37404
https://bugs.llvm.org/show_bug.cgi?id=37405
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@332031 91177308-0d34-0410-b5e6-96231b3b80d8
2018-05-10 20:03:13 +00:00
Sanjay Patel
5dc9b6a1fd
[InstCombine] add minnum/maxnum tests (PR37404, PR37405); NFC
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@332025 91177308-0d34-0410-b5e6-96231b3b80d8
2018-05-10 19:21:08 +00:00
Sanjay Patel
ae65e14fbd
[InstCombine] regenerate full checks; NFC
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@331998 91177308-0d34-0410-b5e6-96231b3b80d8
2018-05-10 17:05:38 +00:00
Matt Arsenault
252134602f
Add minnum / maxnum intrinsics
...
These are named following the IEEE-754 names for these
functions, rather than the libm fmin / fmax to avoid
possible ambiguities. Some languages may implement something
resembling fmin / fmax which return NaN if either operand is
to propagate errors. These implement the IEEE-754 semantics
of returning the other operand if either is a NaN representing
missing data.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220341 91177308-0d34-0410-b5e6-96231b3b80d8
2014-10-21 23:00:20 +00:00