[SLP]Relax assertion to check if the input scalars were extended to
authorAlexey Bataev <a.bataev@outlook.com>
Fri, 14 Jul 2023 13:01:04 +0000 (06:01 -0700)
committerAlexey Bataev <a.bataev@outlook.com>
Fri, 14 Jul 2023 14:19:49 +0000 (07:19 -0700)
commit8ab962e411c478a5424dcfdd1c8bca7877596f1b
tree0ea9accd1cbe6e1e0377772b201d214ec7134f32
parent547544112b60da4c6a75210ca4fc6e3bd05914ec
[SLP]Relax assertion to check if the input scalars were extended to
match the size of base node (PR63668).

Need to adjust the check for assert and take into account case where the
original scalars are reused and were extended to match the vector factor
of the reused SLP node.
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
llvm/test/Transforms/SLPVectorizer/X86/pr63668.ll [new file with mode: 0644]