[PATCH] D105053: [INSTCOMBINE] Tramsform reduction(shuffle V, poison, unique_mask) to reduction(V).

Alexey Bataev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 28 12:39:26 PDT 2021


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

After SLP + LTO we may have have reduction(shuffle V, poison,
mask). This can be simplified to just reduction(V) if the mask is only
for single vector and just all elements from this vector are permuted,

  without reusing, replacing with undefs and/or other values, etc.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D105053

Files:
  llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
  llvm/test/Transforms/InstCombine/reduction-shufflevector.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D105053.354995.patch
Type: text/x-patch
Size: 14610 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210628/0632d9ab/attachment.bin>


More information about the llvm-commits mailing list