[all-commits] [llvm/llvm-project] c0e5e7: [SLP]Fix a crash trying finding insert point for G...

Alexey Bataev via All-commits all-commits at lists.llvm.org
Thu May 4 09:45:28 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c0e5e7db9ae27db765981f5e55e0819f369d7095
  Author: Alexey Bataev <a.bataev at outlook.com>
  Date:   2023-05-04 (Thu, 04 May 2023)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
    M llvm/test/Transforms/SLPVectorizer/X86/gep-nodes-with-non-gep-inst.ll

  Log Message:
  [SLP]Fix a crash trying finding insert point for GEP nodes with non-gep

If the vectorizable GEP node is built, which should not be scheduled,
and at least one node is a non-gep instruction, need to insert the
vectorized instructions before the last instruction in the list, not
before the first one, otherwise the instructions may be emitted in the
wrong order.

More information about the All-commits mailing list