[all-commits] [llvm/llvm-project] 5dccea: [SLP]Do not emit many extractelements, reuse the s...

Alexey Bataev via All-commits all-commits at lists.llvm.org
Fri Dec 30 06:45:20 PST 2022


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

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

  Log Message:
  -----------
  [SLP]Do not emit many extractelements, reuse the single one emitted.

We do not need to emit many extractelements for each particular use, we
can reuse the only one, just need to adjust it to make it dominate on
all uses.

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




More information about the All-commits mailing list