[all-commits] [llvm/llvm-project] dd6066: [SLP] Emit reduction instead of 2 extracts + scala...

Alexey Bataev via All-commits all-commits at lists.llvm.org
Thu Jul 10 12:51:22 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: dd60663b9bfaab15362a850ba7f63bafc11a56d4
      https://github.com/llvm/llvm-project/commit/dd60663b9bfaab15362a850ba7f63bafc11a56d4
  Author: Alexey Bataev <a.bataev at outlook.com>
  Date:   2025-07-10 (Thu, 10 Jul 2025)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
    M llvm/test/Transforms/SLPVectorizer/AArch64/commute.ll
    M llvm/test/Transforms/SLPVectorizer/AArch64/reduce-fadd.ll
    M llvm/test/Transforms/SLPVectorizer/RISCV/revec.ll
    M llvm/test/Transforms/SLPVectorizer/RISCV/vec3-base.ll
    M llvm/test/Transforms/SLPVectorizer/X86/dot-product.ll
    M llvm/test/Transforms/SLPVectorizer/extracts-with-undefs.ll

  Log Message:
  -----------
  [SLP] Emit reduction instead of 2 extracts + scalar op, when vectorizing operands (#147583)

Added emission of the 2-element reduction instead of 2 extracts + scalar
op, when trying to vectorize operands of the instruction, if it is more
profitable.



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