[all-commits] [llvm/llvm-project] bebe70: [SLP]Detect reused scalars in all possible gathers...

cilkplus via All-commits all-commits at lists.llvm.org
Tue Oct 5 09:43:45 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bebe702dbe8c883fd534d718288ed18319dea1a1
      https://github.com/llvm/llvm-project/commit/bebe702dbe8c883fd534d718288ed18319dea1a1
  Author: Alexey Bataev <a.bataev at outlook.com>
  Date:   2021-10-05 (Tue, 05 Oct 2021)

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

  Log Message:
  -----------
  [SLP]Detect reused scalars in all possible gathers for better vectorization cost.

Some initially gathered nodes missed the check for the reused scalars,
which leads to high gather cost. Such nodes still can be represented as
m gathers + shuffle instead of n gathers, where m < n.

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




More information about the All-commits mailing list