diff options
author | Sanjay Patel <spatel@rotateright.com> | 2016-09-16 22:16:18 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2016-09-16 22:16:18 +0000 |
commit | f26710d97d9c272be8a55d26a8ad80b6ad978247 (patch) | |
tree | 83a16293988855f85f3bdaeab0bbf246bcf4fc6e /llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp | |
parent | 6408c9135c726275784607d548053db9185bade7 (diff) | |
download | bcm5719-llvm-f26710d97d9c272be8a55d26a8ad80b6ad978247.tar.gz bcm5719-llvm-f26710d97d9c272be8a55d26a8ad80b6ad978247.zip |
[InstCombine] canonicalize vector select with constant vector condition to shuffle
As discussed on llvm-dev ( http://lists.llvm.org/pipermail/llvm-dev/2016-August/104210.html ):
turn a vector select with constant condition operand into a shuffle as a canonicalization step.
Shuffles may be easier to reason about in conjunction with other shuffles and insert/extract.
Possible known (minor?) regressions from this change are filed as:
https://llvm.org/bugs/show_bug.cgi?id=28530
https://llvm.org/bugs/show_bug.cgi?id=28531
https://llvm.org/bugs/show_bug.cgi?id=30371
If something terrible happens to perf after this commit, feel free to revert until a backend
fix is in place.
Differential Revision: https://reviews.llvm.org/D24279
llvm-svn: 281787
Diffstat (limited to 'llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp')
0 files changed, 0 insertions, 0 deletions