[all-commits] [llvm/llvm-project] 093206: [SLP]Fix PR78298: Assertion `GEP->getNumIndices() ...

Alexey Bataev via All-commits all-commits at lists.llvm.org
Tue Jan 16 09:17:51 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 093206bb7eddf53cf6e1ffe4c0ffc09d37785e27
      https://github.com/llvm/llvm-project/commit/093206bb7eddf53cf6e1ffe4c0ffc09d37785e27
  Author: Alexey Bataev <a.bataev at outlook.com>
  Date:   2024-01-16 (Tue, 16 Jan 2024)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
    A llvm/test/Transforms/SLPVectorizer/X86/gep-nonconst-idx-transformed-to-const.ll

  Log Message:
  -----------
  [SLP]Fix PR78298: Assertion `GEP->getNumIndices() == 1 &&
!isa<Constant>(GEPIdx)' failed.

The non-constant index might be folded to constant during earlier stages
of vectorization. Need to consider this option and filter out out GEP
with the constant indices from the candidates list.




More information about the All-commits mailing list