This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Cleanup SMRD buffer selection
ClosedPublic

Authored by arsenm on Jan 30 2020, 12:15 PM.

Details

Summary

The usage of the Imm out argument from SelectSMRDOffset is pretty
confusing. Stop trying to reject CI immediates in the case where the
offset field can be used. It's not an illegal way to encode the
immediate, so just prefer the better encoding pattern with
AddedComplexity.

We probably don't even really need the different opcodes for the
different offset types anymore, but that will be more work to cleanup.

The SMRD non-buffer load patterns could also use a cleanup to be done
separately.

Diff Detail

Event Timeline

arsenm created this revision.Jan 30 2020, 12:15 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 30 2020, 12:15 PM
This revision is now accepted and ready to land.Jan 30 2020, 2:46 PM