[SLP][NFC] Remove Limit from tryToVectorizeSequence() arguments.
authorVasileios Porpodas <vporpodas@google.com>
Fri, 14 Apr 2023 20:18:33 +0000 (13:18 -0700)
committerVasileios Porpodas <vporpodas@google.com>
Fri, 14 Apr 2023 21:58:57 +0000 (14:58 -0700)
commit7e67a9473dbd44a468df7e819c13ede4b55d7f45
tree721a0da884c3e657c8bc6732b60f0e21bd4f1007
parent2c8d0048f03d054f13909a26f959ef95b2a0a4de
[SLP][NFC] Remove Limit from tryToVectorizeSequence() arguments.

Limit turns out to be implemented in the exact same way for all calls to
tryToVectorizeSequence(). So this patch removes it and implements it internally
as a lambda function.

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