This is an archive of the discontinued LLVM Phabricator instance.

[LoopVectorize] Let selectVectorizationFactor choose a scalable VF.
AbandonedPublic

Authored by sdesmalen on Feb 11 2021, 2:00 PM.

Details

Reviewers
None
Summary

This patch changes the algorithm of selectVectorizationFactor to
iterate all power of 2 VFs between Min/MaxFactor, for both fixed
and scalable Min/MaxFactor VFs. It then invokes the cost-model as
normal, and selects the most cost-effective VF to vectorize the
loop.

Diff Detail