This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Simplify allowsMisalignedMemoryAccesses
AbandonedPublic

Authored by arsenm on Feb 6 2017, 1:20 PM.

Details

Reviewers
tstellarAMD
Summary

4-byte alignment is good enough in all address spaces,
so early exit for that case.

This fixes being overly conservative with stack accesses
of larger types.

Diff Detail

Event Timeline

arsenm created this revision.Feb 6 2017, 1:20 PM
arsenm retitled this revision from AMDGPU: Simplify isLegalAddressingMode to AMDGPU: Simplify allowsMisalignedMemoryAccesses.Feb 6 2017, 1:21 PM
arsenm updated this revision to Diff 87331.Feb 6 2017, 4:07 PM

Missed test update.

This changes the vectorizer to start combining private accesses which will need to be split up later. This isn't exactly ideal, but from an alignment perspective I think is correct. It might be desirable to add a different hook for the vectorizer to check

arsenm updated this revision to Diff 87345.Feb 6 2017, 5:44 PM
t-tye added a subscriber: t-tye.Mar 22 2017, 6:38 PM
tony-tye removed a subscriber: tony-tye.Mar 22 2017, 6:50 PM
arsenm abandoned this revision.Feb 22 2019, 7:53 AM