[PATCH] D68374: [X86] Add v32i8 shuffle lowering strategy to recognize two v4i64 vectors truncated to v4i8 and concatenated into the lower 8 bytes with undef/zero upper bytes.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 2 23:18:51 PDT 2019


craig.topper created this revision.
craig.topper added reviewers: RKSimon, spatel.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.

This patch recognizes the shuffle pattern we get from a
v8i64->v8i8 truncate when v8i64 isn't a legal type.

With VLX we can use two VTRUNCS, unpckldq, and a insert_subvector.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D68374

Files:
  llvm/lib/Target/X86/X86ISelLowering.cpp
  llvm/test/CodeGen/X86/min-legal-vector-width.ll
  llvm/test/CodeGen/X86/shuffle-vs-trunc-512.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D68374.222969.patch
Type: text/x-patch
Size: 7354 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191003/b94f7122/attachment.bin>


More information about the llvm-commits mailing list