[Hexagon] Use shuffles when lowering "gather" shufflevectors
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>
Wed, 12 Sep 2018 22:14:52 +0000 (22:14 +0000)
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>
Wed, 12 Sep 2018 22:14:52 +0000 (22:14 +0000)
commita6d4fc0e299d2f5a11e57a267156d07fe53420e7
tree0dac39fd67013bbb3b22894d60b7764be3b11b20
parentf853741142dd97ffc574510859544cc591c0656c
[Hexagon] Use shuffles when lowering "gather" shufflevectors

Shufflevector instructions in LLVM IR that extract a subset of elements
of a longer input into a shorter vector can be done using VECTOR_SHUFFLEs.
This will avoid expanding them into constly extracts and inserts.

llvm-svn: 342091
llvm/lib/Target/Hexagon/HexagonISelLoweringHVX.cpp
llvm/test/CodeGen/Hexagon/autohvx/isel-shuffle-gather.ll [new file with mode: 0644]