This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Fix SILoadStoreOptimizer for gfx90a
ClosedPublic

Authored by arsenm on May 10 2021, 6:29 AM.

Details

Reviewers
rampitec
foad
Summary

This was hardcoding the register class to use for the newly created
pointer registers, violating the aligned VGPR requirement.

Diff Detail

Event Timeline

arsenm created this revision.May 10 2021, 6:29 AM
arsenm requested review of this revision.May 10 2021, 6:29 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 10 2021, 6:29 AM
Herald added a subscriber: wdng. · View Herald Transcript
rampitec added inline comments.May 10 2021, 8:07 AM
llvm/test/CodeGen/AMDGPU/promote-constOffset-to-imm-gfx90a.mir
5

Does it check what you have changed? RC is checked for vdst, and the change is about the base address RC.

llvm/test/CodeGen/AMDGPU/promote-constOffset-to-imm.ll
114

It seems the same as GFX9 checks, just needs -DAG?

arsenm added inline comments.May 10 2021, 3:06 PM
llvm/test/CodeGen/AMDGPU/promote-constOffset-to-imm.ll
114

Yes and no. These have identical interleaved sections. These tests aren't great since they should really be testing the sets with the same base pointers, but those checks are missing. -DAG would work if the base pointers were checked

arsenm updated this revision to Diff 344623.May 11 2021, 5:57 PM

Make mir test slightly stricter

rampitec accepted this revision.May 11 2021, 6:03 PM
This revision is now accepted and ready to land.May 11 2021, 6:03 PM