This is an archive of the discontinued LLVM Phabricator instance.

[NFC][AMDGPU] assert scoreboard index is in range
ClosedPublic

Authored by ldrumm on Aug 25 2023, 3:38 AM.

Details

Summary

getRegInterval can theoretically return AGPRs or SGPRS which aren't
valid when updating the VgprMemTypes array. Make this clear with an
assert.

Diff Detail

Event Timeline

ldrumm created this revision.Aug 25 2023, 3:38 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 25 2023, 3:38 AM
ldrumm requested review of this revision.Aug 25 2023, 3:38 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 25 2023, 3:38 AM
Herald added a subscriber: wdng. · View Herald Transcript
ldrumm updated this revision to Diff 553434.Aug 25 2023, 4:17 AM

isVGPR didn't account for AGPR registers which are valid

arsenm accepted this revision.Aug 25 2023, 5:20 AM
This revision is now accepted and ready to land.Aug 25 2023, 5:20 AM
ldrumm closed this revision.Aug 25 2023, 5:37 AM

I forgot to add the Differential Revision field to my commit message; apologies. Merged
To github.com:llvm/llvm-project.git

adaae6a7c1ae..ce0d16f574f5  main -> main