[SLP]Check if the root of the buildvector has one use only.
authorAlexey Bataev <a.bataev@outlook.com>
Mon, 16 May 2022 13:43:00 +0000 (06:43 -0700)
committerAlexey Bataev <a.bataev@outlook.com>
Mon, 16 May 2022 14:30:36 +0000 (07:30 -0700)
commit152072801e24fb1e5cd962b0cb089230bc27b6b9
tree7f73c61ced5b29918f76e0330862ae9503f98f69
parent356d47ccb9b5f69b8b984d37a8b3c8813a84413b
[SLP]Check if the root of the buildvector has one use only.

The root of the buildvector can have only one use, otherwise it can be
treated only as a final element of the previous buildvector sequence.
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
llvm/test/Transforms/SLPVectorizer/X86/buildvector-same-lane-insert.ll