This is an archive of the discontinued LLVM Phabricator instance.

[SLPVectorizer] Get rid of IndexQueue array from vectorizeStores. NFCI.
ClosedPublic

Authored by yrouban on Jan 24 2019, 1:39 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

yrouban created this revision.Jan 24 2019, 1:39 AM
ABataev added inline comments.Jan 24 2019, 6:30 AM
lib/Transforms/Vectorize/SLPVectorizer.cpp
4749 ↗(On Diff #183264)
  1. Use auto &&.
  2. Do not use default capture, better to use explicit capture list.
4767 ↗(On Diff #183264)

Offset < E is too much here, better to use max(Idx + 1, E - Idx) as the limit

yrouban marked 3 inline comments as done.Jan 24 2019, 11:49 PM
yrouban added inline comments.
lib/Transforms/Vectorize/SLPVectorizer.cpp
4749 ↗(On Diff #183264)

any reference on why auto &&' differs?

yrouban updated this revision to Diff 183485.Jan 24 2019, 11:51 PM
yrouban marked an inline comment as done.

addressed all comments

ABataev accepted this revision.Jan 25 2019, 6:16 AM

LG

lib/Transforms/Vectorize/SLPVectorizer.cpp
4749 ↗(On Diff #183264)

It is just to be sure that we don't do copy here, but a move.

This revision is now accepted and ready to land.Jan 25 2019, 6:16 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptJan 31 2019, 10:44 PM