[SLP]Fix PR61554: use of missing vectorized value in buildvector nodes.
authorAlexey Bataev <a.bataev@outlook.com>
Mon, 20 Mar 2023 17:21:12 +0000 (10:21 -0700)
committerAlexey Bataev <a.bataev@outlook.com>
Mon, 20 Mar 2023 19:05:26 +0000 (12:05 -0700)
commit59ff9d3777701ebbe6a59ab2edb8792ef3d2873f
tree79d0f5dce909046b0e1084db857c68e35a7cf1fc
parent5452d8607185a6328dae766330c023cbf1105c95
[SLP]Fix PR61554: use of missing vectorized value in buildvector nodes.

If the buildvector node matches the vector node, it reuse the vector
value from this vector node, but its VectorizedValue field is not
updated. Need to update this field to avoid misses during the analysis
of the reused gather/buildvector nodes.
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
llvm/test/Transforms/SLPVectorizer/X86/reused-buildvector-matching-vectorized-node.ll