commit | 536ffae2c426bed087c3612b3d3b75e552187f93 | [log] [tgz] |
---|---|---|
author | Sanjay Patel <spatel@rotateright.com> | Sat Jan 06 17:34:22 2018 +0000 |
committer | Sanjay Patel <spatel@rotateright.com> | Sat Jan 06 17:34:22 2018 +0000 |
tree | 8855b8634f8bd23b6e70c99cbe2dede0dcb90d05 | |
parent | 82c67ea4836bcf79ac44be406025d8aef1ee2b72 [diff] |
[InstCombine] relax use constraint for min/max (~a, ~b) --> ~min/max(a, b) In the minimal case, this won't remove instructions, but it still improves uses of existing values. In the motivating example from PR35834, it does remove instructions, and sets that case up to be optimized by something like D41603: https://reviews.llvm.org/D41603 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@321936 91177308-0d34-0410-b5e6-96231b3b80d8