[PATCH] D61245: [X86][SSE] isHorizontalBinOp - add support for target shuffles

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 28 13:15:54 PDT 2019


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

Add target shuffle decoding to isHorizontalBinOp as well as ISD::VECTOR_SHUFFLE support.

This does mean we can go through bitcasts so we need to bitcast the extracted args to ensure they are the correct type

Fixes PR39936 and should help with PR39920/PR39921


Repository:
  rL LLVM

https://reviews.llvm.org/D61245

Files:
  lib/Target/X86/X86ISelLowering.cpp
  test/CodeGen/X86/phaddsub.ll
  test/CodeGen/X86/vector-shuffle-256-v4.ll
  test/CodeGen/X86/vector-shuffle-256-v8.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61245.197037.patch
Type: text/x-patch
Size: 9431 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190428/1fb78f97/attachment.bin>


More information about the llvm-commits mailing list