[SLP]Do not represent splats as node with the reused scalars.
authorAlexey Bataev <a.bataev@outlook.com>
Fri, 10 Dec 2021 15:43:52 +0000 (07:43 -0800)
committerAlexey Bataev <a.bataev@outlook.com>
Wed, 15 Dec 2021 14:33:11 +0000 (06:33 -0800)
commit6f2e087631790b3de5dee1eabfd916adc1825b84
treeefea3d756e7b1c549253d752f9f8d9fb06d3a316
parent417014170bd581186277c5e899a2338c482db69d
[SLP]Do not represent splats as node with the reused scalars.

No need to represent splats as a node with the reused scalars, it may
increase the cost (currently pass just ignores extra shuffle cost and it
is still not correct).

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