[all-commits] [llvm/llvm-project] 8ceccb: [SLP]Outline and fix code for finding common inser...

Andrew V. Tischenko via All-commits all-commits at lists.llvm.org
Thu Dec 2 09:19:25 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8ceccbd321319434450717ac1917cdca174ff6eb
      https://github.com/llvm/llvm-project/commit/8ceccbd321319434450717ac1917cdca174ff6eb
  Author: Alexey Bataev <a.bataev at outlook.com>
  Date:   2021-12-02 (Thu, 02 Dec 2021)

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

  Log Message:
  -----------
  [SLP]Outline and fix code for finding common insertelement vectors.

Need to outline the code for finding common vectors in insertelement
instructions into a separate function for future patches. It also
improves the process by adding some extra checks for early exit and
fixes a bug where it always finds the match because of erroneous compare
of the same values.

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




More information about the All-commits mailing list