This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Graceful abort for waterfalls in SIOptimizeVGPRLiveRange
ClosedPublic

Authored by critson on Apr 10 2022, 9:39 PM.

Details

Summary

If the CFG structure of a waterfall loop is not the expected shape
then gracefully abort traversing the IR for the given loop.
This applies to nest waterfall loops which are not supported by
the VGPR live range optimizer.

Diff Detail

Event Timeline

critson created this revision.Apr 10 2022, 9:39 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 10 2022, 9:39 PM
critson requested review of this revision.Apr 10 2022, 9:39 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 10 2022, 9:39 PM

Ideally we would support VGPR live range optimisation for nested waterfalls, but this is none trivial.

foad added a comment.Apr 11 2022, 8:09 AM

Looks fine to me but I would prefer to wait for Ruiling to approve it.

ruiling accepted this revision.Apr 11 2022, 7:42 PM

Sounds good to me, Thanks for the fix!

This revision is now accepted and ready to land.Apr 11 2022, 7:42 PM
This revision was landed with ongoing or failed builds.Apr 11 2022, 10:16 PM
This revision was automatically updated to reflect the committed changes.