This is an archive of the discontinued LLVM Phabricator instance.

[LoopVectorizer] Change types of lists from pointers to references. NFC
ClosedPublic

Authored by dmgreen on Mar 2 2020, 4:51 AM.

Details

Summary

getReductionVars, getInductionVars and getFirstOrderRecurrences were all being returned from LoopVectorizationLegality as pointers to lists. This just changes them to be references, cleaning up the interface slightly.

Diff Detail

Event Timeline

dmgreen created this revision.Mar 2 2020, 4:51 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 2 2020, 4:51 AM
fhahn accepted this revision.Mar 2 2020, 6:04 AM

LGTM, thanks!

This revision is now accepted and ready to land.Mar 2 2020, 6:04 AM
This revision was automatically updated to reflect the committed changes.