This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Cleanup SMRD buffer selection
ClosedPublic

Authored by arsenm on Feb 3 2020, 2:10 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.Feb 3 2020, 2:10 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 3 2020, 2:10 PM
rampitec accepted this revision.Feb 3 2020, 5:21 PM

LGTM

This revision is now accepted and ready to land.Feb 3 2020, 5:21 PM