HomePhabricator

[SLP] General improvements of SLP vectorization process.

Authored by ABataev on Aug 7 2017, 8:25 AM.

Description

[SLP] General improvements of SLP vectorization process.

Patch tries to improve two-pass vectorization analysis, existing in SLP vectorizer. What it does:

  1. Defines key nodes, that are the vectorization roots. Previously vectorization started if StoreInst or ReturnInst is found. For now, the vectorization started for all Instructions with no users and void types (Terminators, StoreInst) + CallInsts.
  2. CmpInsts, InsertElementInsts and InsertValueInsts are stored in the

array. This array is processed only after the vectorization of the
first-after-these instructions key node is finished. Vectorization goes
in reverse order to try to vectorize as much code as possible.

Reviewers: mzolotukhin, Ayal, mkuper, gilr, hfinkel, RKSimon

Subscribers: ashahid, anemet, RKSimon, mssimpso, llvm-commits

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

llvm-svn: 310260

Details

Committed
ABataevAug 7 2017, 8:25 AM
Differential Revision
D29826: [SLP] General improvements of SLP vectorization process.
Parents
rGfaeac6b15edb: Fix typo in comment
Branches
Unknown
Tags
Unknown