[LSV] Change the default value of InstertElement to poison
authorhyeongyu kim <gusrb406@snu.ac.kr>
Sun, 3 Oct 2021 08:57:05 +0000 (17:57 +0900)
committerhyeongyu kim <gusrb406@snu.ac.kr>
Sun, 3 Oct 2021 08:57:34 +0000 (17:57 +0900)
commitcf284f6c5ef34040bb28190509e2876242f85b49
treed8a290e55302324841fdcbc4e61dec3ee0a11388
parentc274384cff1bbb2f1c840adeccd49e7dd952e119
[LSV] Change the default value of InstertElement to poison

This patch is changing the InsertElement's placeholder to poison without changing the LSV's behavior.

Regardless of whether `StoreTy` is FixedVectorType or not, the poison value will be overwritten with a different value.
Therefore, whether the InsertElement's placeholder is poison or undef will not affect the result of the program.

Reviewed By: nikic

Differential Revision: https://reviews.llvm.org/D111005
llvm/lib/Transforms/Vectorize/LoadStoreVectorizer.cpp
llvm/test/Transforms/LoadStoreVectorizer/AMDGPU/merge-stores.ll
llvm/test/Transforms/LoadStoreVectorizer/AMDGPU/pointer-elements.ll
llvm/test/Transforms/LoadStoreVectorizer/int_sideeffect.ll