This is an archive of the discontinued LLVM Phabricator instance.

[SLP]Improve and fix getVectorElementSize.
ClosedPublic

Authored by ABataev on Mar 31 2021, 12:40 PM.

Details

Summary
  1. Need to cleanup InstrElementSize map for each new tree, otherwise might use sizes from the previous run of the vectorization attempt.
  2. No need to include into analysis the instructions from the different basic blocks to save compile time.

Diff Detail

Event Timeline

ABataev created this revision.Mar 31 2021, 12:40 PM
ABataev requested review of this revision.Mar 31 2021, 12:40 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 31 2021, 12:40 PM
RKSimon edited the summary of this revision. (Show Details)Apr 1 2021, 2:11 AM
RKSimon added inline comments.Apr 1 2021, 2:16 AM
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
5628

NFC change - please commit separately.

ABataev marked an inline comment as done.Apr 1 2021, 6:24 AM
RKSimon accepted this revision.Apr 1 2021, 6:37 AM

LGTM with a few minor comment updates

llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
5655

update comment - we don't "give up" anymore

5668

Update the comment now that we're more selective.

This revision is now accepted and ready to land.Apr 1 2021, 6:37 AM
This revision was landed with ongoing or failed builds.Apr 1 2021, 7:04 AM
This revision was automatically updated to reflect the committed changes.