[PATCH] D148362: [SLP]Fix cost estimation for buildvectors with extracts and/or constants.

Alexey Bataev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 14 12:00:14 PDT 2023


ABataev created this revision.
ABataev added reviewers: dmgreen, vdmitrie, RKSimon.
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.

If the partial matching is found and some other scalars must be
inserted, need to account the cost of the extractelements, transformed
to shuffles, and/or reused entries and calculate the cost of inserting
constants properly into the non-poison vectors.
Also, fixed the cost calculation for final gather/buildvector sequence.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D148362

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D148362.513704.patch
Type: text/x-patch
Size: 15582 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230414/0451318b/attachment.bin>


More information about the llvm-commits mailing list