[all-commits] [llvm/llvm-project] a3fd82: [SLP]Fix the crash on cost calculation if non-comp...

cilkplus via All-commits all-commits at lists.llvm.org
Fri Apr 30 09:52:33 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a3fd82c289878e1a8fa5833d87b688cd50624247
      https://github.com/llvm/llvm-project/commit/a3fd82c289878e1a8fa5833d87b688cd50624247
  Author: Alexey Bataev <a.bataev at outlook.com>
  Date:   2021-04-30 (Fri, 30 Apr 2021)

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

  Log Message:
  -----------
  [SLP]Fix the crash on cost calculation if non-compatible vectors shuffled.

If the extracts from the non-power-2 vectors are recognized as shuffles,
need some extra checks to not crash cost calculations if trying to gext
the ecost for subvector extracts. In this case need to check carefully
that we do not exit out of bounds of the original vector, otherwise the
TTI's cost model will crash on assert.

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




More information about the All-commits mailing list