[all-commits] [llvm/llvm-project] 8cf029: [SLP]Fix cost estimation for buildvectors with ext...

Alexey Bataev via All-commits all-commits at lists.llvm.org
Wed Apr 19 05:57:36 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8cf0290c4a47aa184b7b28032ec7a0f7311ff7c5
      https://github.com/llvm/llvm-project/commit/8cf0290c4a47aa184b7b28032ec7a0f7311ff7c5
  Author: Alexey Bataev <a.bataev at outlook.com>
  Date:   2023-04-19 (Wed, 19 Apr 2023)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
    M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
    M llvm/test/Transforms/SLPVectorizer/AArch64/extractelements-to-shuffle.ll
    M llvm/test/Transforms/SLPVectorizer/AArch64/fshl.ll
    M llvm/test/Transforms/SLPVectorizer/X86/reduction-logical.ll

  Log Message:
  -----------
  [SLP]Fix cost estimation for buildvectors with extracts and/or constants.

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.

Differential Revision: https://reviews.llvm.org/D148362




More information about the All-commits mailing list