aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/WebAssembly/Disassembler/WebAssemblyDisassembler.cpp
diff options
context:
space:
mode:
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>2020-06-18 21:53:50 -0500
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>2020-06-18 21:54:22 -0500
commit1fed131660b2c5d3ea7007e273a7a5da80699445 (patch)
tree8044058fac04a316780301d0bbd1b3f72509aa87 /llvm/lib/Target/WebAssembly/Disassembler/WebAssemblyDisassembler.cpp
parent8f3b2c8aa3175628128a32a6bcaecc67efd03514 (diff)
downloadllvm-1fed131660b2c5d3ea7007e273a7a5da80699445.zip
llvm-1fed131660b2c5d3ea7007e273a7a5da80699445.tar.gz
llvm-1fed131660b2c5d3ea7007e273a7a5da80699445.tar.bz2
[PowerPC] Canonicalize shuffles to match more single-instruction masks on LE
We currently miss a number of opportunities to emit single-instruction VMRG[LH][BHW] instructions for shuffles on little endian subtargets. Although this in itself is not a huge performance opportunity since loading the permute vector for a VPERM can always be pulled out of loops, producing such merge instructions is useful to downstream optimizations. Since VPERM is essentially opaque to all subsequent optimizations, we want to avoid it as much as possible. Other permute instructions have semantics that can be reasoned about much more easily in later optimizations. This patch does the following: - Canonicalize shuffles so that the first element comes from the first vector (since that's what most of the mask matching functions want) - Switch the elements that come from splat vectors so that they match the corresponding elements from the other vector (to allow for merges) - Adds debugging messages for when a shuffle is matched to a VPERM so that anyone interested in improving this further can get the info for their code Differential revision: https://reviews.llvm.org/D77448
Diffstat (limited to 'llvm/lib/Target/WebAssembly/Disassembler/WebAssemblyDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions