OSDN Git Service

[SLP] Allow vectorization of the instruction from the same basic blocks only, NFC.
authorAlexey Bataev <a.bataev@hotmail.com>
Fri, 28 Jul 2017 20:11:16 +0000 (20:11 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Fri, 28 Jul 2017 20:11:16 +0000 (20:11 +0000)
commit2976ab9c15e4bf2274442f42a0a1094a41e294d5
treecf9ea890f485db62b412882be4bbae590e956edd
parent71a1ea82c0f796ed0f69800b780f7a3f153573a6
[SLP] Allow vectorization of the instruction from the same basic blocks only, NFC.

Summary:
After some changes in SLP vectorizer we missed some additional checks to
limit the instructions for vectorization. We should not perform analysis
of the instructions if the parent of instruction is not the same as the
parent of the first instruction in the tree or it was analyzed already.

Subscribers: mzolotukhin

Differential Revision: https://reviews.llvm.org/D34881

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309425 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Vectorize/SLPVectorizer.cpp