[all-commits] [llvm/llvm-project] 9bdcf8: [SLP]Improve isGatherShuffledEntry by looking deep...

Alexey Bataev via All-commits all-commits at lists.llvm.org
Thu Jan 19 13:51:06 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9bdcf8778a5c6f57e6d05308e9dde655bba97698
      https://github.com/llvm/llvm-project/commit/9bdcf8778a5c6f57e6d05308e9dde655bba97698
  Author: Alexey Bataev <a.bataev at outlook.com>
  Date:   2023-01-19 (Thu, 19 Jan 2023)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
    M llvm/test/Transforms/SLPVectorizer/AArch64/horizontal.ll
    M llvm/test/Transforms/SLPVectorizer/X86/PR39774.ll
    M llvm/test/Transforms/SLPVectorizer/X86/crash_netbsd_decompress.ll

  Log Message:
  -----------
  [SLP]Improve isGatherShuffledEntry by looking deeper through the reused scalars.

The compiler may produce better results if it does not look for
constants, uses an extra analysis of phi nodes, looks through all tree
nodes without skipping the cases, where the very first set of nodes is
empty. Also, it tries to reshufle the nodes if it is profitable for
sure, i.e. at least 2 scalars are used for single node permutation and at
least 3 scalars are used for the permutation of 2 nodes.

Part of D110978

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




More information about the All-commits mailing list