[PATCH] D115757: [SLP]Generalize cost model.

Alexey Bataev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 14 13:13:23 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.

Generalized the cost model estimation. Improved cost model estimation
for repeated scalars (no need to count their cost anymore), improved

  cost model for extractelement instructions.

cpu2017

  511.povray_r             0.57
  520.omnetpp_r           -0.98
  521.wrf_r               -0.01
  525.x264_r               3.59 <+
  526.blender_r           -0.12
  531.deepsjeng_r         -0.07
  538.imagick_r           -1.42

Geometric mean:  0.21


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D115757

Files:
  llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
  llvm/test/Transforms/SLPVectorizer/AArch64/horizontal.ll
  llvm/test/Transforms/SLPVectorizer/AArch64/vectorizable-selects-min-max.ll
  llvm/test/Transforms/SLPVectorizer/X86/PR32086.ll
  llvm/test/Transforms/SLPVectorizer/X86/PR39774.ll
  llvm/test/Transforms/SLPVectorizer/X86/vectorize-reorder-reuse.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D115757.394371.patch
Type: text/x-patch
Size: 42936 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211214/7f336cae/attachment-0001.bin>


More information about the llvm-commits mailing list