[all-commits] [llvm/llvm-project] fd1854: [SLP]Allow masked gathers only if allowed by target.

cilkplus via All-commits all-commits at lists.llvm.org
Mon May 3 08:07:58 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fd18547e0721983dcb273670d16341921f831e50
      https://github.com/llvm/llvm-project/commit/fd18547e0721983dcb273670d16341921f831e50
  Author: Alexey Bataev <a.bataev at outlook.com>
  Date:   2021-05-03 (Mon, 03 May 2021)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
    M llvm/test/Transforms/SLPVectorizer/X86/pr47629-inseltpoison.ll
    M llvm/test/Transforms/SLPVectorizer/X86/pr47629.ll
    M llvm/test/Transforms/SLPVectorizer/X86/tiny-tree.ll

  Log Message:
  -----------
  [SLP]Allow masked gathers only if allowed by target.

Need to check if target allows/supports masked gathers before trying to
estimate its cost, otherwise we may fail to vectorize some of the
patterns because of too pessimistic cost model.

Part of D57059.

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




More information about the All-commits mailing list