[PATCH] D86158: [X86][AVX] Fold store(extract_element(vtrunc)) to truncated store

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 18 10:49:36 PDT 2020


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

Add handling for X86ISD::VTRUNC nodes that the (lower) truncated bits are then extracted as an element and the element stored out - this can be lowered to a generic truncated store directly.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D86158

Files:
  llvm/lib/Target/X86/X86ISelLowering.cpp
  llvm/test/CodeGen/X86/shuffle-vs-trunc-128.ll
  llvm/test/CodeGen/X86/shuffle-vs-trunc-256.ll
  llvm/test/CodeGen/X86/shuffle-vs-trunc-512.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D86158.286349.patch
Type: text/x-patch
Size: 9448 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200818/ad945724/attachment.bin>


More information about the llvm-commits mailing list