This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] SIInsertSkips: Refactor early exit block creation
ClosedPublic

Authored by critson on Oct 2 2020, 10:48 PM.

Details

Summary

Refactor exit block creation to a single call ensureEarlyExitBlock.
Add support for generating an early exit block which clears the
exec mask, but only add this instruction when required.
These changes are to facilitate adding more forms of early
termination for PS shaders in the near future.

Diff Detail

Event Timeline

critson created this revision.Oct 2 2020, 10:48 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 2 2020, 10:48 PM
critson requested review of this revision.Oct 2 2020, 10:48 PM
critson updated this revision to Diff 295965.Oct 2 2020, 11:34 PM

Remove more unused code.

critson updated this revision to Diff 295966.Oct 3 2020, 12:39 AM

Add missing variable reset.

nhaehnle accepted this revision.Oct 5 2020, 8:40 AM

LGTM

This revision is now accepted and ready to land.Oct 5 2020, 8:40 AM
This revision was landed with ongoing or failed builds.Oct 5 2020, 5:57 PM
This revision was automatically updated to reflect the committed changes.