This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Don't rely on SIAddIMGInit for GlobalISel
ClosedPublic

Authored by foad on Mar 31 2021, 9:52 AM.

Details

Summary

Image loads with TFE/LWE need special handling. Do it during instruction
selection rather than fixing it up with another pass. NFCI.

Diff Detail

Event Timeline

foad created this revision.Mar 31 2021, 9:52 AM
foad requested review of this revision.Mar 31 2021, 9:52 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 31 2021, 9:52 AM
arsenm requested changes to this revision.Mar 31 2021, 9:55 AM

If the fallback is enabled, this pass will still run. You need to have the pass check if isel failed and skip the function if it suceeded

This revision now requires changes to proceed.Mar 31 2021, 9:55 AM
foad updated this revision to Diff 334741.Apr 1 2021, 10:10 AM

Rebase.

arsenm accepted this revision.Apr 1 2021, 10:11 AM
This revision is now accepted and ready to land.Apr 1 2021, 10:11 AM
This revision was landed with ongoing or failed builds.Apr 1 2021, 10:14 AM
This revision was automatically updated to reflect the committed changes.