[SLP]Include cost of the reshuffling for same nodes with resizing.
authorAlexey Bataev <a.bataev@outlook.com>
Fri, 5 May 2023 14:49:15 +0000 (07:49 -0700)
committerAlexey Bataev <a.bataev@outlook.com>
Tue, 18 Jul 2023 13:05:15 +0000 (06:05 -0700)
commit83ba148a8ae1561a32e8d6dc5209ce8d67e59a63
tree984f956384f9bc63bc01c927034027180a5ea13b
parent343e204a52845dcd7bb7e7b8213513bcc33939c8
[SLP]Include cost of the reshuffling for same nodes with resizing.

Need to account reshuffling, required for the reused elements in the
buildvector nodes, which are copies (perfect match) of other nodes, but
include reused elements.

Differential Revision: https://reviews.llvm.org/D149966
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
llvm/test/Transforms/SLPVectorizer/X86/crash_clear_undefs.ll