[all-commits] [llvm/llvm-project] 6dfe16: [SLP]Fix crash in canBuildSplitNode on struct-type...

Alexey Bataev via All-commits all-commits at lists.llvm.org
Tue Sep 8 02:20:31 PDT 2026


  Branch: refs/heads/release/23.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 6dfe1677ab8dffbc6ec13d53a1e0215d75147689
      https://github.com/llvm/llvm-project/commit/6dfe1677ab8dffbc6ec13d53a1e0215d75147689
  Author: Alexey Bataev <a.bataev at outlook.com>
  Date:   2026-09-07 (Mon, 07 Sep 2026)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
    A llvm/test/Transforms/SLPVectorizer/X86/split-node-struct-type.ll

  Log Message:
  -----------
  [SLP]Fix crash in canBuildSplitNode on struct-typed scalars

Split nodes require plain vector types for the cost model and codegen,
but getWidenedType on a struct scalar type returns a struct-of-vectors,
so the cast<VectorType> asserted. Bail out on struct-typed scalars, they
are not supported.

Fixes #221715

Reviewers:

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

(cherry picked from commit 42b846980eeacd8052d7a463e1aea8bb91aff248)



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