[all-commits] [llvm/llvm-project] 24a043: [SLP] Fix crash of shuffle poison (#106857)

tcwzxx via All-commits all-commits at lists.llvm.org
Sun Sep 1 05:24:30 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 24a043a6ff052ad7c123e67d020d688eea1a7efa
      https://github.com/llvm/llvm-project/commit/24a043a6ff052ad7c123e67d020d688eea1a7efa
  Author: tcwzxx <tcwzxx at gmail.com>
  Date:   2024-09-01 (Sun, 01 Sep 2024)

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

  Log Message:
  -----------
  [SLP] Fix crash of shuffle poison (#106857)

When the shuffle masks are `PoisonMaskElem`, there is not need to check
the cost of `SK_ExtractSubvector`. It is free. Otherwise, it will cause
the compiler to crash.

Assertion `(Idx + EltsPerVector) <= alignTo(NumElts, EltsPerVector) &&
"SK_ExtractSubvector index out of range"' failed.



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