[X86][XOP] BITREVERSE lowering using VPPERM
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 30 Mar 2016 14:14:00 +0000 (14:14 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 30 Mar 2016 14:14:00 +0000 (14:14 +0000)
commitb87ffe851903721481d953d37e7c654cd79cc22e
tree3c0cfc56bd8626f9da3c8e08852a07c9908bbe0f
parent832a6790f66c5ec637b3be95703fedf520a38b33
[X86][XOP] BITREVERSE lowering using VPPERM

XOP's VPPERM has some great 'permute operations' that it can do as well as part of shuffling the bytes of a 128-bit vector - in this case we use it to perform BITREVERSE in a single instruction.

llvm-svn: 264870
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/vector-bitreverse.ll [new file with mode: 0644]