This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Don't assert on misaligned DS read2/write2 offsets
ClosedPublic

Authored by arsenm on Aug 26 2020, 8:12 AM.

Details

Summary

This would assert with unaligned DS access enabled. The offset may not
be aligned. Theoretically the pattern predicate should check the
memory alignment, although it is possible to have the memory be
aligned but not the immediate offset.

In this case I would expect it to use ds_{read|write}_b64 with
unaligned access, but am not clear if there's a reason it doesn't.

Diff Detail

Event Timeline

arsenm created this revision.Aug 26 2020, 8:12 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 26 2020, 8:12 AM
arsenm requested review of this revision.Aug 26 2020, 8:12 AM
rampitec accepted this revision.Aug 26 2020, 9:46 AM
This revision is now accepted and ready to land.Aug 26 2020, 9:46 AM