[all-commits] [llvm/llvm-project] 133c12: [SLP]Fix a crash on accessing element with index -...

Alexey Bataev via All-commits all-commits at lists.llvm.org
Thu Oct 3 08:28:01 PDT 2024


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

  Changed paths:
    M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
    A llvm/test/Transforms/SLPVectorizer/X86/reused-mask-with-poison-index.ll

  Log Message:
  -----------
  [SLP]Fix a crash on accessing element with index -1 for reused mask with PoisonMaskElem

Need to check if the index from the ReuseShuffleIndices mask is not
equal to PoisonMaskElem before trying to access the element by index.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list