This is an archive of the discontinued LLVM Phabricator instance.

[LoopVectorize] Don't emit remarks about lack of scalable vectors unless they're specifically requested.
ClosedPublic

Authored by paulwalker-arm on Aug 13 2021, 5:17 AM.

Diff Detail

Event Timeline

paulwalker-arm created this revision.Aug 13 2021, 5:17 AM
paulwalker-arm requested review of this revision.Aug 13 2021, 5:17 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 13 2021, 5:17 AM
Matt added a subscriber: Matt.Aug 13 2021, 5:45 AM
MaskRay accepted this revision.Aug 13 2021, 8:49 AM

Thanks!

This revision is now accepted and ready to land.Aug 13 2021, 8:49 AM
fhahn accepted this revision.Aug 13 2021, 9:44 AM

LGTM, thanks! IMO it makes sense to limit the message to cases where scalable vectorization was requested but not possible. It might be good to add a brief description in the commit message.

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
5718

nit: compiler?

Spelling out VF as vectorization factor or something like that would probably help to make the remark easier to understand for users.