]> granicus.if.org Git - llvm/commit
[SLP] Refactoring of horizontal reduction analysis, NFC.
authorAlexey Bataev <a.bataev@hotmail.com>
Fri, 27 Jan 2017 10:54:04 +0000 (10:54 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Fri, 27 Jan 2017 10:54:04 +0000 (10:54 +0000)
commit2272113e892a065c0465470b4ef74fbd493468cf
treea4de214fbd32c28b0c68b447a829fd64d6029bbc
parentcce6712519e7ff405ad1c6453a139ad543b38215
[SLP] Refactoring of horizontal reduction analysis, NFC.

Some checks in SLP horizontal reduction analysis function are performed
several times, though it is enough to perform these checks only once
during an initial attempt at adding candidate for the reduction
instruction/reduced value.

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

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