OSDN Git Service

[InstCombine, ARM, AArch64] Convert table lookup to shuffle vector
authorAlexandros Lamprineas <alexandros.lamprineas@arm.com>
Wed, 30 May 2018 14:38:50 +0000 (14:38 +0000)
committerAlexandros Lamprineas <alexandros.lamprineas@arm.com>
Wed, 30 May 2018 14:38:50 +0000 (14:38 +0000)
commit896749ca4069103436e1909f7dc348d733d80cd6
tree5fd829d10004a80f3aca0407acf9d231dc4e1bd5
parent8f367c48d761e82e06b16e437f82b68745762a38
[InstCombine, ARM, AArch64] Convert table lookup to shuffle vector

Turning a table lookup intrinsic into a shuffle vector instruction
can be beneficial. If the mask used for the lookup is the constant
vector {7,6,5,4,3,2,1,0}, then the back-end generates byte reverse
instructions instead.

Differential Revision: https://reviews.llvm.org/D46133

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@333550 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineCalls.cpp
test/Transforms/InstCombine/AArch64/tbl1.ll [new file with mode: 0644]
test/Transforms/InstCombine/ARM/tbl1.ll [new file with mode: 0644]