[all-commits] [llvm/llvm-project] c61922: [SLP]Use common logic for cost estimation of the a...

Alexey Bataev via All-commits all-commits at lists.llvm.org
Wed Aug 9 11:53:49 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c619222ea43eb309f2ee2ff5d63a7056cd7d1c7a
      https://github.com/llvm/llvm-project/commit/c619222ea43eb309f2ee2ff5d63a7056cd7d1c7a
  Author: Alexey Bataev <a.bataev at outlook.com>
  Date:   2023-08-09 (Wed, 09 Aug 2023)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
    M llvm/test/Transforms/PhaseOrdering/X86/vector-reductions-logical.ll

  Log Message:
  -----------
  [SLP]Use common logic for cost estimation of the alternate vector nodes.

We can use buildShuffleEntryMask() to build the shuffle mask correctly
not only for the alternate nodes with reuses, but also for the nodes
without reused scalars. It allows better to estimate the cost of the
node and emit better code.

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




More information about the All-commits mailing list