OSDN Git Service

[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)
commit5d5475af090136662e36315ff90bfa67a8656844
treee31a0d089747700f5b8118a2f757c0dd03ff44e1
parent9c37cace429b347d3cfc190c221db5836038ab13
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@342091 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Hexagon/HexagonISelLoweringHVX.cpp
test/CodeGen/Hexagon/autohvx/isel-shuffle-gather.ll [new file with mode: 0644]