[all-commits] [llvm/llvm-project] ce39bd: [SLP][NFC]Reorder gather nodes with reused scalars...

Andrew V. Tischenko via All-commits all-commits at lists.llvm.org
Mon Sep 19 14:01:23 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ce39bdbd65e840f1b58a642f8d361898ac99cef3
      https://github.com/llvm/llvm-project/commit/ce39bdbd65e840f1b58a642f8d361898ac99cef3
  Author: Alexey Bataev <a.bataev at outlook.com>
  Date:   2022-09-19 (Mon, 19 Sep 2022)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp

  Log Message:
  -----------
  [SLP][NFC]Reorder gather nodes with reused scalars, NFC.

The compiler does not reorder the gather nodes with reused scalars, just
does it for opernads of the user nodes. This currently does not affect
the compiler but breaks internal logic of the SLP graph. In future, it
is supposed to actually use all nodes instead of just list of operands
and this will affect the vectorization result.
Also, did some early check to avoid complex logic in cost estimation
analysis, should improve compiler time a bit.




More information about the All-commits mailing list