[SLP][NFC]Avoid extra useless ConstantVector creation, use PointerUnion
authorAlexey Bataev <a.bataev@outlook.com>
Thu, 27 Apr 2023 17:24:00 +0000 (10:24 -0700)
committerAlexey Bataev <a.bataev@outlook.com>
Thu, 27 Apr 2023 17:48:14 +0000 (10:48 -0700)
commit1604a100f1ced3f1b49d64bd1c6a80ee609b9c8c
tree960044c9e506a217cf67af12e2ef3633ad88d115
parent1ab8b9ae159bf6048da9e7350d4c2f694912501f
[SLP][NFC]Avoid extra useless ConstantVector creation, use PointerUnion
instead, NFC.

Better to use PointerUnion<Value *, const TreeEntry *> instead of extra
attempts of creating null vector values, where possible.
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp