[PATCH] D101555: [SLP]Improve handling of compensate external uses cost.

Alexey Bataev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 29 11:09:51 PDT 2021


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

Instead of direct subtracting of the insertelement instructions costs,
which is not accurate and tends to create bias toward favoring
vectorization, try to detect perfect/shuffled match and add a cost of
possible final shuffle instruction without adding an extractelementcost.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D101555

Files:
  llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
  llvm/test/Transforms/SLPVectorizer/AArch64/transpose-inseltpoison.ll
  llvm/test/Transforms/SLPVectorizer/AArch64/transpose.ll
  llvm/test/Transforms/SLPVectorizer/X86/PR35865-inseltpoison.ll
  llvm/test/Transforms/SLPVectorizer/X86/PR35865.ll
  llvm/test/Transforms/SLPVectorizer/X86/alternate-int-inseltpoison.ll
  llvm/test/Transforms/SLPVectorizer/X86/alternate-int.ll
  llvm/test/Transforms/SLPVectorizer/X86/hadd-inseltpoison.ll
  llvm/test/Transforms/SLPVectorizer/X86/hadd.ll
  llvm/test/Transforms/SLPVectorizer/X86/hsub-inseltpoison.ll
  llvm/test/Transforms/SLPVectorizer/X86/hsub.ll
  llvm/test/Transforms/SLPVectorizer/X86/resched.ll
  llvm/test/Transforms/SLPVectorizer/X86/sext-inseltpoison.ll
  llvm/test/Transforms/SLPVectorizer/X86/sext.ll
  llvm/test/Transforms/SLPVectorizer/X86/zext-inseltpoison.ll
  llvm/test/Transforms/SLPVectorizer/X86/zext.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D101555.341583.patch
Type: text/x-patch
Size: 335719 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210429/8daabbc3/attachment-0001.bin>


More information about the llvm-commits mailing list