[all-commits] [llvm/llvm-project] 0108a5: [SLP]Fix a crash on an subvector size calculation ...

Alexey Bataev via All-commits all-commits at lists.llvm.org
Tue Jun 17 08:58:40 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0108a5908cab5e418c683ef9b6e1810755344b5e
      https://github.com/llvm/llvm-project/commit/0108a5908cab5e418c683ef9b6e1810755344b5e
  Author: Alexey Bataev <a.bataev at outlook.com>
  Date:   2025-06-17 (Tue, 17 Jun 2025)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
    M llvm/test/Transforms/PhaseOrdering/X86/hadd.ll
    M llvm/test/Transforms/PhaseOrdering/X86/hsub.ll
    A llvm/test/Transforms/SLPVectorizer/SystemZ/non-power-2-subvector-extract.ll

  Log Message:
  -----------
  [SLP]Fix a crash on an subvector size calculation for non-power-of-2 vector

Patch fixes cost estimation for the extractelements from non-power-of-2
vectors, defined as subvector extracts. In this case the subvector size
might be not adjusted to a whole register size, need to get the minimum
between whole vector size and the actual difference to prevent compiler
crash.

Fixes #143513



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