commit | 9a3e5b040137a7bd6b395ba98e6171fd42066bb0 | [log] [tgz] |
---|---|---|
author | Sanjay Patel <spatel@rotateright.com> | Wed Dec 13 21:58:15 2017 +0000 |
committer | Sanjay Patel <spatel@rotateright.com> | Wed Dec 13 21:58:15 2017 +0000 |
tree | 18d4e3bafdd2a71638eb29772004304773e92046 | |
parent | 2b46be6545def38ecf555e22a0031e1f628ce654 [diff] |
[EarlyCSE] recognize commuted and swapped variants of min/max as equivalent (PR35642) As shown in: https://bugs.llvm.org/show_bug.cgi?id=35642 ...we can have different forms of min/max, so we should recognize those here in EarlyCSE similar to how we already handle binops and compares that can commute. Differential Revision: https://reviews.llvm.org/D41136 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@320640 91177308-0d34-0410-b5e6-96231b3b80d8