[PATCH] D42044: X86: Utilize ZeroableElements for canWidenShuffleElements

Zvi Rackover via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 14 15:50:22 PST 2018


zvi created this revision.
zvi added reviewers: RKSimon, craig.topper.

canWidenShuffleElements can do a better job if given a mask with
ZeroableElements info. Apparently, ZeroableElements was being only used
to identify AllZero candidates, but posssibly we could plug it into more
shuffle matchers.


Repository:
  rL LLVM

https://reviews.llvm.org/D42044

Files:
  lib/Target/X86/X86ISelLowering.cpp
  test/CodeGen/X86/2012-04-26-sdglue.ll
  test/CodeGen/X86/avx-cast.ll
  test/CodeGen/X86/vector-shuffle-256-v32.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42044.129794.patch
Type: text/x-patch
Size: 8012 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180114/58283f83/attachment.bin>


More information about the llvm-commits mailing list