[all-commits] [llvm/llvm-project] 908b75: [SLP]Improve vectorization of PHI instructions.

cilkplus via All-commits all-commits at lists.llvm.org
Mon Jun 21 12:27:40 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 908b7536615ee8694d949b60716833893c7f7049
      https://github.com/llvm/llvm-project/commit/908b7536615ee8694d949b60716833893c7f7049
  Author: Alexey Bataev <a.bataev at outlook.com>
  Date:   2021-06-21 (Mon, 21 Jun 2021)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
    M llvm/test/Transforms/SLPVectorizer/slp-max-phi-size.ll

  Log Message:
  -----------
  [SLP]Improve vectorization of PHI instructions.

Perform better analysis when trying to vectorize PHIs.
1. Do not try to vectorize vector PHIs.
2. Do deeper analysis for more profitable nodes for the vectorization.

Before we just tried to vectorize the PHIs of the same type. Patch
improves this and tries to vectorize PHIs with incoming values which
come from the same basic block, have the same and/or alternative
opcodes.

It allows to save the compile time and provides better vectorization
results in general.

Part of D57059.

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




More information about the All-commits mailing list