[SLP]Unify vectorization of PHI and store nodes with improved tiny tree vectorization.
authorAlexey Bataev <a.bataev@outlook.com>
Wed, 15 Sep 2021 14:47:17 +0000 (07:47 -0700)
committerAlexey Bataev <a.bataev@outlook.com>
Thu, 21 Oct 2021 13:25:32 +0000 (06:25 -0700)
commit3ea7877c8b62ba100e7b34dbf4afa0171d5b4705
tree1939290dcaa63ea07d953f7ebd1b1f3e320f3180
parent5f8228d310627889716b51e1acd5840ec653d899
[SLP]Unify vectorization of PHI and store nodes with improved tiny tree vectorization.

Vectorization of PHIs and stores very similar, it might be beneficial to
try to revectorize stores (like PHIs) if the total number of stores with
the same/alternate opcode is less than the vector size but number of
stores with the same type is larger than the vector size.

Differential Revision: https://reviews.llvm.org/D109831
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
llvm/test/Transforms/SLPVectorizer/X86/tiny-tree.ll