[SLP]Properly define incoming block for user PHI nodes.
authorAlexey Bataev <a.bataev@outlook.com>
Tue, 21 Feb 2023 15:07:43 +0000 (07:07 -0800)
committerAlexey Bataev <a.bataev@outlook.com>
Tue, 21 Feb 2023 16:01:24 +0000 (08:01 -0800)
commit5f928a223ef2c14701eab3077a534c1e49269a51
tree23b6967acd1b0ae398bec0f65b9ebbcec1d48f94
parente8cb3559eec0d0b182fa01e6e35183025f9143a3
[SLP]Properly define incoming block for user PHI nodes.

MainOp of the PHI vectorizable entries contains the proper order of
incoming blocks, not the last instruction in the block.
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
llvm/test/Transforms/SLPVectorizer/phi-not-ordered.ll [new file with mode: 0644]