[all-commits] [llvm/llvm-project] 496254: [SLP]Improve analysis/emission of vector operands ...

Andrew V. Tischenko via All-commits all-commits at lists.llvm.org
Wed Nov 24 12:56:20 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 496254cf802a21e1967b61dec48017b8ec831574
      https://github.com/llvm/llvm-project/commit/496254cf802a21e1967b61dec48017b8ec831574
  Author: Alexey Bataev <a.bataev at outlook.com>
  Date:   2021-11-24 (Wed, 24 Nov 2021)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
    M llvm/test/Transforms/SLPVectorizer/AArch64/transpose-inseltpoison.ll
    M llvm/test/Transforms/SLPVectorizer/AArch64/transpose.ll
    M llvm/test/Transforms/SLPVectorizer/X86/remark_alternate.ll

  Log Message:
  -----------
  [SLP]Improve analysis/emission of vector operands for alternate nodes.

Compiler has an analysis for perfect diamond matching but it does not
support nodes with main/alternate opcodes. The problem is that the
scalars themselves are different and might not match directly with other
nodes, but operands and main/alternate opcodes might match and compiler
might reuse some previously emitted vector instructions. Need to include
this analysis in the cost model and actual vector instructions emission
process.

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




More information about the All-commits mailing list