diff options
| author | Craig Topper <craig.topper@intel.com> | 2018-12-18 18:26:25 +0000 |
|---|---|---|
| committer | Craig Topper <craig.topper@intel.com> | 2018-12-18 18:26:25 +0000 |
| commit | 20a6db5a84ce8947d188becadd04f80ec353e805 (patch) | |
| tree | ad9e00feaf24d0afbfc27d01fcd92a4f21b2fb13 /llvm/test/Transforms/LoopVectorize/AMDGPU/unroll-in-loop-vectorizer.ll | |
| parent | b536bf52997cb764b24f9121212aa527b78571a6 (diff) | |
| download | bcm5719-llvm-20a6db5a84ce8947d188becadd04f80ec353e805.tar.gz bcm5719-llvm-20a6db5a84ce8947d188becadd04f80ec353e805.zip | |
[X86] Create PSUBUS from (add (umax X, C), -C)
InstCombine seems to canonicalize or PSUB patter into a max with the cosntant and an add with an inverse of the constant.
This patch recognizes this pattern and turns it into PSUBUS. Future work could improve undef element handling.
Fixes some of PR40053
Differential Revision: https://reviews.llvm.org/D55780
llvm-svn: 349519
Diffstat (limited to 'llvm/test/Transforms/LoopVectorize/AMDGPU/unroll-in-loop-vectorizer.ll')
0 files changed, 0 insertions, 0 deletions

