[all-commits] [llvm/llvm-project] c2f97c: [SLP] Do not skip tiny trees with gathered loads t...

Alexey Bataev via All-commits all-commits at lists.llvm.org
Thu Apr 2 06:47:24 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c2f97c591753b821318092c974efe57ed92f4181
      https://github.com/llvm/llvm-project/commit/c2f97c591753b821318092c974efe57ed92f4181
  Author: Alexey Bataev <a.bataev at outlook.com>
  Date:   2026-04-02 (Thu, 02 Apr 2026)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
    M llvm/test/Transforms/SLPVectorizer/RISCV/complex-loads.ll
    M llvm/test/Transforms/SLPVectorizer/X86/pr47629-inseltpoison.ll
    M llvm/test/Transforms/SLPVectorizer/X86/pr47629.ll

  Log Message:
  -----------
  [SLP] Do not skip tiny trees with gathered loads to vectorize

The isTreeTinyAndNotFullyVectorizable check for 2-node trees
(insertelement root + gather child) was too aggressive: it rejected
trees even when LoadEntriesToVectorize was non-empty, preventing
gathered loads from being vectorized into masked loads/strided loads, etc.

Reviewers: hiraditya, RKSimon

Pull Request: https://github.com/llvm/llvm-project/pull/190181



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list