This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Fix AGPR offset for waitcnt
ClosedPublic

Authored by Joe_Nash on Feb 14 2022, 11:22 AM.

Details

Summary

An enum value stores the offset between AGPR ranges and VGPR
ranges in the internal storage of SIInsertWaitcnts. It said 226 when
it should say 256, causing some portion of the ranges to overlap. That
in turn causes 'aliasing' between the registers, potentially inserting
waitcnts that are not required.

Diff Detail

Event Timeline

Joe_Nash created this revision.Feb 14 2022, 11:22 AM
Joe_Nash requested review of this revision.Feb 14 2022, 11:22 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 14 2022, 11:22 AM

pre-commit tests patch is not showing up. I will re-upload the patches

Joe_Nash updated this revision to Diff 408527.Feb 14 2022, 11:29 AM

pre-commit test separately and update summary

rampitec accepted this revision.Feb 14 2022, 11:31 AM

LGTM, but update the summary of the review.

This revision is now accepted and ready to land.Feb 14 2022, 11:31 AM
Joe_Nash edited the summary of this revision. (Show Details)Feb 14 2022, 11:32 AM
This revision was landed with ongoing or failed builds.Feb 14 2022, 12:38 PM
This revision was automatically updated to reflect the committed changes.