[PATCH] D57514: [X86][AVX] insert_subvector(bitcast(v), bitcast(s), c1) -> bitcast(insert_subvector(v, s, c2))

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 31 07:48:25 PST 2019


RKSimon created this revision.
RKSimon added reviewers: craig.topper, spatel, lebedev.ri, andreadb.

Similar to what we already do in DAGCombiner, but this version also handles bitcasts from types with different scalar sizes, which x86 is better at handling.

I've also included a concat(broadcast(x),broadcast(x)) -> broadcast(x) combine in the patch to demonstrate the main motivation - if accepted this will be committed separately.


Repository:
  rL LLVM

https://reviews.llvm.org/D57514

Files:
  lib/Target/X86/X86ISelLowering.cpp
  test/CodeGen/X86/combine-sdiv.ll
  test/CodeGen/X86/insert-into-constant-vector.ll
  test/CodeGen/X86/subvector-broadcast.ll
  test/CodeGen/X86/vector-shuffle-256-v16.ll
  test/CodeGen/X86/widened-broadcast.ll
  test/CodeGen/X86/x86-interleaved-access.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57514.184505.patch
Type: text/x-patch
Size: 28668 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190131/cf881ba6/attachment-0001.bin>


More information about the llvm-commits mailing list