[PATCH] D49491: [RFC][VPlan, SLP] Add simple SLP analysis on top of VPlan.

Renato Golin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 18 12:57:29 PDT 2018


rengolin added a comment.

In https://reviews.llvm.org/D49491#1167024, @hsaito wrote:

> The fact of the matter is that the loop vectorization has a need to understand SLP and SLP vectorizer needs to understand Loop. As such, unless we want to build/maintain separate LoopVectorize+SLP and SLPVectorize+Loop, consolidation of LoopVectorization and SLPVectorization will inevitably happen sooner or later. From that perspective, ensuring that VPlan is the right infrastructure for such consolidation is a very important thing for us to do.


I'm totally on board with you. I want SLP to be in VPlan (have been advocating for it since the beginning).

> We don't necessarily have to choose between #1 and #2. Once we come to conclude that VPlan is promising enough for SLP, we can start VPlanize SLP vectorizer (#1) while #2 moves forward. We just need to make a conscious effort to converge the two, starting from sharing small chunks of code and then steadily increase sharing.

A merge between 1 and 2, sounds equally plausible. I just want everyone to agree on the strategy.


https://reviews.llvm.org/D49491





More information about the llvm-commits mailing list