[all-commits] [llvm/llvm-project] ac93b6: [SLP]Fix PR59098: check if the vector type is scal...

Alexey Bataev via All-commits all-commits at lists.llvm.org
Mon Nov 21 10:27:59 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ac93b611659d94fd94b0394e78888b1402cd5199
      https://github.com/llvm/llvm-project/commit/ac93b611659d94fd94b0394e78888b1402cd5199
  Author: Alexey Bataev <a.bataev at outlook.com>
  Date:   2022-11-21 (Mon, 21 Nov 2022)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
    A llvm/test/Transforms/SLPVectorizer/X86/scalarazied-result.ll

  Log Message:
  -----------
  [SLP]Fix PR59098: check if the vector type is scalarized for
extractelements.

If the resulting type is going to be scalarized, no need to adjust the
cost of removed extractelement and insert/extract subvector costs.
Otherwise, the compiler can crash because of the wrong type sizes.




More information about the All-commits mailing list