summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCFragment.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2017-03-11 20:42:31 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2017-03-11 20:42:31 +0000
commit18debfa5b44aae8faa38c40ff0ad32e5fabb7773 (patch)
treea8014fcb561281d9c35bbb480b15b173c0f5a104 /llvm/lib/MC/MCFragment.cpp
parent9ff5732c921ffae261784551529e82b29440cf95 (diff)
downloadbcm5719-llvm-18debfa5b44aae8faa38c40ff0ad32e5fabb7773.tar.gz
bcm5719-llvm-18debfa5b44aae8faa38c40ff0ad32e5fabb7773.zip
[X86][SSE] Improve extraction of elements from v16i8 (pre-SSE41)
Without SSE41 (pextrb) we currently extract byte elements from a vector by spilling to stack and reloading the byte. This patch is an initial attempt at using MOVD/PEXTRW to extract the relevant DWORD/WORD from the vector and then shift+truncate to collect the correct byte. Extraction of multiple bytes this way would result in code bloat, but as explained in the patch we could probably afford to be more aggressive with the supported extractions before again falling back on spilling - possibly through counting the number of extracts and which DWORD/WORD they originate? Differential Revision: https://reviews.llvm.org/D29841 llvm-svn: 297568
Diffstat (limited to 'llvm/lib/MC/MCFragment.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud