[all-commits] [llvm/llvm-project] 842a23: [SLP]Alternate vectorization for cmp instructions.

Andrew V. Tischenko via All-commits all-commits at lists.llvm.org
Wed Feb 2 10:34:23 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 842a2360a84692f2e4c37cc3e652640e6627d004
      https://github.com/llvm/llvm-project/commit/842a2360a84692f2e4c37cc3e652640e6627d004
  Author: Alexey Bataev <a.bataev at outlook.com>
  Date:   2022-02-02 (Wed, 02 Feb 2022)

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

  Log Message:
  -----------
  [SLP]Alternate vectorization for cmp instructions.

Added support for alternate ops vectorization of the cmp instructions.
It allows to vectorize either cmp instructions with same/swapped
predicate but different (swapped) operands kinds or cmp instructions
with different predicates and compatible operands kinds.

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




More information about the All-commits mailing list