[all-commits] [llvm/llvm-project] 89f3bc: [SLP]Allow to reorder nodes with >2 scalar values.

cilkplus via All-commits all-commits at lists.llvm.org
Thu Jun 3 10:03:26 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 89f3bc7698c53942dca8fe4749b66b06d23ca06b
      https://github.com/llvm/llvm-project/commit/89f3bc7698c53942dca8fe4749b66b06d23ca06b
  Author: Alexey Bataev <a.bataev at outlook.com>
  Date:   2021-06-03 (Thu, 03 Jun 2021)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
    M llvm/test/Transforms/SLPVectorizer/AArch64/gather-root.ll
    M llvm/test/Transforms/SLPVectorizer/X86/alternate-calls-inseltpoison.ll
    M llvm/test/Transforms/SLPVectorizer/X86/alternate-calls.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/cmp_commute-inseltpoison.ll
    M llvm/test/Transforms/SLPVectorizer/X86/cmp_commute.ll
    M llvm/test/Transforms/SLPVectorizer/X86/crash_cmpop.ll
    M llvm/test/Transforms/SLPVectorizer/X86/phi.ll
    M llvm/test/Transforms/SLPVectorizer/X86/pr49081.ll
    M llvm/test/Transforms/SLPVectorizer/X86/resched.ll
    M llvm/test/Transforms/SLPVectorizer/X86/rgb_phi.ll
    M llvm/test/Transforms/SLPVectorizer/X86/sext-inseltpoison.ll
    M llvm/test/Transforms/SLPVectorizer/X86/sext.ll

  Log Message:
  -----------
  [SLP]Allow to reorder nodes with >2 scalar values.

tryToVectorizeList function allows to reorder only 2 scalars. Patch
allows to reorder >2 scalars. Also, to avoid possible regressions, it
allows extra vectorization of the remaining parts of the scalars
elements if possible.

Part of D57059.

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




More information about the All-commits mailing list