[SLP]Improve vectorization of the CmpInst instructions.
authorAlexey Bataev <a.bataev@outlook.com>
Thu, 1 Apr 2021 16:16:31 +0000 (09:16 -0700)
committerAlexey Bataev <a.bataev@outlook.com>
Mon, 5 Apr 2021 13:22:51 +0000 (06:22 -0700)
commit00a84f9a7f8916e024243e2685db4c11d06ecf75
treefb0a9d51d86dabeb73367fca38ba14ce1b63854a
parent13a84f21d7ce032186a060bfdf8bce5cc6d2daf4
[SLP]Improve vectorization of the CmpInst instructions.

During vectorization better to postpone the vectorization of the CmpInst
instructions till the end of the basic block. Otherwise we may vectorize
it too early and may miss some vectorization patterns, like reductions.

Reworked part of D57059

Differential Revision: https://reviews.llvm.org/D99796
llvm/include/llvm/Transforms/Vectorize/SLPVectorizer.h
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
llvm/test/Transforms/SLPVectorizer/X86/horizontal-minmax.ll