[all-commits] [llvm/llvm-project] e99b98: [SLP]Improve cost model for the vectorized extract...

cilkplus via All-commits all-commits at lists.llvm.org
Thu Apr 22 07:41:24 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e99b98cb1bca945e8a22cefaf9ef5d9972ea3535
      https://github.com/llvm/llvm-project/commit/e99b98cb1bca945e8a22cefaf9ef5d9972ea3535
  Author: Alexey Bataev <a.bataev at outlook.com>
  Date:   2021-04-22 (Thu, 22 Apr 2021)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
    M llvm/test/Transforms/SLPVectorizer/AArch64/transpose-inseltpoison.ll
    M llvm/test/Transforms/SLPVectorizer/AArch64/transpose.ll
    M llvm/test/Transforms/SLPVectorizer/AArch64/vectorize-free-extracts-inserts.ll
    M llvm/test/Transforms/SLPVectorizer/X86/alternate-int-inseltpoison.ll
    M llvm/test/Transforms/SLPVectorizer/X86/alternate-int.ll
    M llvm/test/Transforms/SLPVectorizer/X86/extractelement.ll

  Log Message:
  -----------
  [SLP]Improve cost model for the vectorized extractelements.

1. No need to call `areAllUsersVectorized` as later the cost is
   calculated only if the instruction has one use and gets vectorized.
2. Need to calculate the cost of the dead extractelement more precisely,
   taking the vector type of the vector operand, not the resulting
   vector type.

Part of D57059.

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




More information about the All-commits mailing list