[PATCH] D148174: [SLP]Introduce gather cost estimation function.

Alexey Bataev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 12 14:36:50 PDT 2023


ABataev created this revision.
ABataev added reviewers: RKSimon, vdmitrie.
Herald added subscribers: vporpo, hiraditya.
Herald added a project: All.
ABataev requested review of this revision.
Herald added a subscriber: pcwang-thead.
Herald added a project: LLVM.

Introduced BoUpSLP::ShuffleCostEstimator::gather function as an initial
implementation of the gather/buildvector cost estimation for buildvector
nodes. It will allow to use general codegen infrastructure for better
cost estimation + it improves the cost estimation for the
gathers/buildvectors.

Improved part of D110978 <https://reviews.llvm.org/D110978>.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D148174

Files:
  llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
  llvm/test/Transforms/SLPVectorizer/AArch64/extractelements-to-shuffle.ll
  llvm/test/Transforms/SLPVectorizer/X86/lookahead.ll
  llvm/test/Transforms/SLPVectorizer/X86/reduced-gathered-vectorized.ll
  llvm/test/Transforms/SLPVectorizer/X86/reduction-logical.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D148174.512976.patch
Type: text/x-patch
Size: 27204 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230412/f22fde12/attachment.bin>


More information about the llvm-commits mailing list