[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 13:48:25 +0000 (06:48 -0700)
commit6fdfc81287ecdc2a7f409d08538ec6ce2bd698da
tree12ef5f070243a96f86cc1576ca1b6cc505852818
parentfd5cda3393fb0285c47a05ed920e9dee24c70f21
[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]