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

Alexey Bataev via All-commits all-commits at lists.llvm.org
Wed Jul 9 16:52:31 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ac4a38e9bd573a173432b89cbef7cce7a48e7907
      https://github.com/llvm/llvm-project/commit/ac4a38e9bd573a173432b89cbef7cce7a48e7907
  Author: Alexey Bataev <a.bataev at outlook.com>
  Date:   2025-07-09 (Wed, 09 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/AArch64/slp-fma-loss.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