After D147334 we never select _SGPR forms of SMEM instructions on
subtargets that also support the _SGPR_IMM form, so there is no need to
handle them here.
Details
Details
- Reviewers
arsenm kosarev - Group Reviewers
Restricted Project - Commits
- rG0c13e0b748be: [AMDGPU] Do not handle _SGPR SMEM instructions in SILoadStoreOptimizer
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM. Another option might be to assert on the _SGPR cases, probably with a comment explaining the reason, rather than just removing them. The instructions still exist.
Comment Actions
Another option might be to assert on the _SGPR cases, probably with a comment explaining the reason, rather than just removing them. The instructions still exist.
I plan to continue work on D147335 which will remove the _SGPR Real instructions (on GFX10+). This will cause a hard failure if we accidentally select the _SGPR Pseudos, giving the same kind of assurance as the assertion you suggested.