This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Mark s_getreg as having side effects instead of reading memory
ClosedPublic

Authored by foad on May 19 2022, 6:19 AM.

Details

Summary

s_getreg does not interact with anything else that is modelled as a
memory access either in IR or MachineIR.

Diff Detail

Event Timeline

foad created this revision.May 19 2022, 6:19 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 19 2022, 6:19 AM
foad requested review of this revision.May 19 2022, 6:19 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 19 2022, 6:19 AM
foad added a comment.May 19 2022, 10:12 AM

The motivation here is to cut down on MachineInstrs that are marked as mayLoad or mayStore but do not have memoperands, since passes like SIMemoryLegalizer have to treat them very conservatively.

rampitec accepted this revision.May 19 2022, 10:35 AM
This revision is now accepted and ready to land.May 19 2022, 10:35 AM