This is an archive of the discontinued LLVM Phabricator instance.

[ARM] Convert active.lane.masks to vctp with non-zero starts
ClosedPublic

Authored by dmgreen on Mar 21 2023, 5:06 AM.

Details

Summary

This attempts to expand the logic in the MVETailPredication pass to convert active lane masks that the vectorizer produces to vctp instructions that the backend can later turn into tail predicated loops. There is some adjustment to the logic to handle this, moving some of the code to check the addrec earlier so that we can get the start value. This start value is then incorporated into the logic of checkin the new vctp is valid, and there is a newly added check that it is known to be a multiple of the VF as we expect.

Diff Detail

Event Timeline

dmgreen created this revision.Mar 21 2023, 5:06 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 21 2023, 5:06 AM
dmgreen requested review of this revision.Mar 21 2023, 5:06 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 21 2023, 5:06 AM
samtebbs accepted this revision.Mar 24 2023, 7:30 AM

LGTM! Nice one

This revision is now accepted and ready to land.Mar 24 2023, 7:30 AM
This revision was landed with ongoing or failed builds.Mar 29 2023, 6:17 AM
This revision was automatically updated to reflect the committed changes.