[all-commits] [llvm/llvm-project] a053af: [SLP]Fix costs calculations.

cilkplus via All-commits all-commits at lists.llvm.org
Mon Jul 26 05:05:50 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a053afed49897aa34e08287f91c5255efa4e5131
      https://github.com/llvm/llvm-project/commit/a053afed49897aa34e08287f91c5255efa4e5131
  Author: Alexey Bataev <a.bataev at outlook.com>
  Date:   2021-07-26 (Mon, 26 Jul 2021)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
    M llvm/test/Transforms/SLPVectorizer/X86/vec_list_bias-inseltpoison.ll
    M llvm/test/Transforms/SLPVectorizer/X86/vec_list_bias.ll

  Log Message:
  -----------
  [SLP]Fix costs calculations.

Need to fix several cost-related problems. The final type may be defined
incorrectly because of to early definition (we may end up with the wider
type), the CommonCost should not be redefined in ExtractElements
cost related calculations and the shuffle of the final insertelements
vectors should be calculated as a cost of single vector permutations
+ costs of two vector permutations for other n-1 incoming vectors.

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




More information about the All-commits mailing list