[all-commits] [llvm/llvm-project] 65c7ce: [SLP]Fix PR51320: Try to vectorize single store op...

Andrew V. Tischenko via All-commits all-commits at lists.llvm.org
Tue Aug 16 07:28:58 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 65c7cecb13f8d2132a54103903501474083afe8f
  Author: Alexey Bataev <a.bataev at outlook.com>
  Date:   2022-08-16 (Tue, 16 Aug 2022)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
    M llvm/test/Transforms/SLPVectorizer/X86/extractelement.ll
    M llvm/test/Transforms/SLPVectorizer/X86/horizontal.ll

  Log Message:
  [SLP]Fix PR51320: Try to vectorize single store operands.

Currently, we try to vectorize values, feeding into stores, only if
slp-vectorize-hor-store option is provided. We can safely enable
vectorization of the value operand of a single store in the basic block,
if the operand value is used only in store.
It should enable extra vectorization and should not increase compile
time significantly.
Fixes https://github.com/llvm/llvm-project/issues/51320

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

More information about the All-commits mailing list