[SLP]Avoid multiple attempts to vectorize CmpInsts.
authorAlexey Bataev <a.bataev@outlook.com>
Tue, 6 Apr 2021 12:59:03 +0000 (05:59 -0700)
committerAlexey Bataev <a.bataev@outlook.com>
Wed, 7 Apr 2021 13:15:42 +0000 (06:15 -0700)
commita78e86e6beb2d62196fa42be9f4a2994823f71f3
treeea1449d72ac7ec8cfb977709e49f5f51260950e0
parent85b86c6f43ab50ba70571ed49da7e81f7d52ffd2
[SLP]Avoid multiple attempts to vectorize CmpInsts.

No need to lookup through and/or try to vectorize operands of the
CmpInst instructions during attempts to find/vectorize min/max
reductions. Compiler implements postanalysis of the CmpInsts so we can
skip extra attempts in tryToVectorizeHorReductionOrInstOperands and save
compile time.

Differential Revision: https://reviews.llvm.org/D99950
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp