[PATCH] D148806: [SLP]Fix the cost for the extractelements, used in several nodes.

Alexey Bataev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 20 07:49:45 PDT 2023


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

Currently the compiler calculates the compensation cost for the
extractelements, removed during vectorization. But if the extractelement
instruction is used in several nodes, we can calculate the compensation
for them several times.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D148806

Files:
  llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
  llvm/test/Transforms/SLPVectorizer/X86/blending-shuffle-inseltpoison.ll
  llvm/test/Transforms/SLPVectorizer/X86/blending-shuffle.ll
  llvm/test/Transforms/SLPVectorizer/X86/buildvector-float-and-extract-lane1.ll
  llvm/test/Transforms/SLPVectorizer/X86/extract-shuffle-inseltpoison.ll
  llvm/test/Transforms/SLPVectorizer/X86/extract-shuffle.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D148806.515335.patch
Type: text/x-patch
Size: 14616 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230420/569e3020/attachment.bin>


More information about the llvm-commits mailing list