[SLP]Improve compile time, NFC.
authorAlexey Bataev <a.bataev@outlook.com>
Wed, 25 May 2022 13:27:30 +0000 (06:27 -0700)
committerAlexey Bataev <a.bataev@outlook.com>
Thu, 26 May 2022 15:40:59 +0000 (08:40 -0700)
commit7b809c30b9261b167cf55ce289eccf88c6000c65
treea854752ef13a40f3f1f71621059d058ce4a0a929
parent120d52b0ef8b0d41d5ce5898422d2d2f42047d0b
[SLP]Improve compile time, NFC.

Patch improves compile time. For function calls, which cannot be
vectorized, create a unique group for each such a call instead of
subgroup. It prevents them from being grouped by a subgroups and
attempts for their vectorization.

Also, looks through casts operand to try to check their
groups/subgroups.

Reduces number of vectorization attempts. No changes in the statistics
for SPEC2017/2006/llvm-test-suite.

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