[all-commits] [llvm/llvm-project] c1d46d: [SLPVectorizer] Fix crash in isShuffle with scalab...

kmclaughlin-arm via All-commits all-commits at lists.llvm.org
Fri Oct 1 02:58:18 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c1d46d34619bea0d9906874baafb5218e15e3b2a
      https://github.com/llvm/llvm-project/commit/c1d46d34619bea0d9906874baafb5218e15e3b2a
  Author: Kerry McLaughlin <kerry.mclaughlin at arm.com>
  Date:   2021-10-01 (Fri, 01 Oct 2021)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
    M llvm/test/Transforms/SLPVectorizer/AArch64/scalable-vector.ll

  Log Message:
  -----------
  [SLPVectorizer] Fix crash in isShuffle with scalable vectors

D104809 changed `buildTree_rec` to check for extract element instructions
with scalable types. However, if the extract is extended or truncated,
these changes do not apply and we assert later on in isShuffle(), which
attempts to cast the type of the extract to FixedVectorType.

Reviewed By: ABataev

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




More information about the All-commits mailing list