This is an archive of the discontinued LLVM Phabricator instance.

[LV] Move selecting vectorization factor logic to LVP (NFC).
ClosedPublic

Authored by fhahn on May 9 2023, 6:54 AM.

Details

Summary

Split off from D143938. This moves the planning logic to select the
vectorization factor to LoopVectorizationPlanner as a step towards only
computing costs for individual VFs in LoopVectorizationCostModel and do
planning in LVP.

Diff Detail

Event Timeline

fhahn created this revision.May 9 2023, 6:54 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 9 2023, 6:54 AM
fhahn requested review of this revision.May 9 2023, 6:54 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 9 2023, 6:54 AM
Ayal accepted this revision.May 9 2023, 11:51 PM

LGTM, ship it!

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
5308
This revision is now accepted and ready to land.May 9 2023, 11:51 PM
This revision was landed with ongoing or failed builds.May 13 2023, 4:29 AM
This revision was automatically updated to reflect the committed changes.
fhahn marked an inline comment as done.May 14 2023, 4:45 AM
fhahn added inline comments.
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
5308

Adjusted in the committed version, thanks!