[PATCH] D98646: [DAG] Fold shuffle(bop(shuffle(x,y),shuffle(z,w)),undef) -> bop(shuffle'(x,y),shuffle'(z,w)

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 15 11:03:55 PDT 2021


RKSimon created this revision.
RKSimon added reviewers: spatel, craig.topper, lebedev.ri, pengfei.
Herald added subscribers: ecnelises, hiraditya.
RKSimon requested review of this revision.
Herald added a project: LLVM.

Followup to D96345 <https://reviews.llvm.org/D96345>, handle unary shuffles of binops (as well as binary shuffles) if we can merge the shuffle with inner operand shuffles.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D98646

Files:
  llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  llvm/test/CodeGen/X86/haddsub-4.ll
  llvm/test/CodeGen/X86/haddsub-shuf.ll
  llvm/test/CodeGen/X86/known-signbits-vector.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98646.330731.patch
Type: text/x-patch
Size: 8061 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210315/e360aad8/attachment.bin>


More information about the llvm-commits mailing list