[all-commits] [llvm/llvm-project] 414abf: [SLP]Fix PR52090: clang crashes: Assertion `Index ...

cilkplus via All-commits all-commits at lists.llvm.org
Thu Oct 14 14:28:45 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 414abff1fe8ac3d5874f9b838cb59a3300b3e475
      https://github.com/llvm/llvm-project/commit/414abff1fe8ac3d5874f9b838cb59a3300b3e475
  Author: Alexey Bataev <a.bataev at outlook.com>
  Date:   2021-10-14 (Thu, 14 Oct 2021)

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

  Log Message:
  -----------
  [SLP]Fix PR52090: clang crashes: Assertion `Index < Length && "Invalid index!"' failed.

Need to check that either Idx is UndefMaskElem and value is UndefValue
or Idx is valid and value is the same as the scalar value in the node.

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




More information about the All-commits mailing list