[PATCH] D115358: [SLP]Improve/fix reodering for gather nodes with extractelements/undefs.

Alexey Bataev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 8 08:56:59 PST 2021


ABataev created this revision.
ABataev added reviewers: RKSimon, anton-afanasyev, dtemirbulatov.
Herald added a subscriber: hiraditya.
ABataev requested review of this revision.
Herald added a project: LLVM.

If the gather node is a mix of undefvalues and exractelement
instructions, need to take the ordering for such nodes into account too.
It allows to reorder some (sub)trees and remove some extra shuffles,
improving overall vectorization.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D115358

Files:
  llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
  llvm/test/Transforms/SLPVectorizer/X86/extracts-with-undefs.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D115358.392805.patch
Type: text/x-patch
Size: 8556 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211208/8a9ded53/attachment.bin>


More information about the llvm-commits mailing list