[all-commits] [llvm/llvm-project] 0cc150: [SLP]Fix PR59230: Use actual vector factor when so...

Alexey Bataev via All-commits all-commits at lists.llvm.org
Tue Nov 29 06:47:55 PST 2022


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

  Changed paths:
    M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
    A llvm/test/Transforms/SLPVectorizer/X86/reorder-vf-to-resize.ll

  Log Message:
  -----------
  [SLP]Fix PR59230: Use actual vector factor when sorting entries.

When we sort entries for attempting to reorder scalars, need to use
actual vectorization factor, not the number of scalars. Otherwise the
compiler crashes, if the scalars has to be reordered.

Differential Revision: https://reviews.llvm.org/D138819




More information about the All-commits mailing list