[all-commits] [llvm/llvm-project] 279b1e: [SLP]Improve gathering of the scalars used in the ...

Alexey Bataev via All-commits all-commits at lists.llvm.org
Fri Dec 1 11:26:40 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 279b1ea65f8403aa6d49e7aafa7e40dc906be4bf
      https://github.com/llvm/llvm-project/commit/279b1ea65f8403aa6d49e7aafa7e40dc906be4bf
  Author: Alexey Bataev <a.bataev at outlook.com>
  Date:   2023-12-01 (Fri, 01 Dec 2023)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
    M llvm/test/Transforms/SLPVectorizer/AArch64/scalarization-overhead.ll

  Log Message:
  -----------
  [SLP]Improve gathering of the scalars used in the graph.

Currently we emit gathers for scalars being vectorized in the tree as
a pair of extractelement/insertelement instructions. Instead we can try
to find all required vectors and emit shuffle vector instructions
directly, improving the code and reducing compile time.

Part of non-power-of-2 vectorization.

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




More information about the All-commits mailing list