This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU/SI: Don't allow unaligned scratch access
ClosedPublic

Authored by tstellarAMD on Oct 12 2016, 10:27 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

tstellarAMD retitled this revision from to AMDGPU/SI: Don't allow unaligned scratch access.
tstellarAMD updated this object.
tstellarAMD added a reviewer: arsenm.
tstellarAMD added a subscriber: llvm-commits.
arsenm added inline comments.Oct 12 2016, 10:37 AM
lib/Target/AMDGPU/SIISelLowering.cpp
456–460 ↗(On Diff #74400)

We shouldn't have to do this for flat if it is known to never access private memory, but I guess this function has no context for where it is being used to check for that. Maybe there should be a version with function context, but then that would require updating all of the uses to pass it in. I guess that can be a fixme for now

test/CodeGen/AMDGPU/scratch-buffer.ll
112–127 ↗(On Diff #74400)

wrong check prefix

Address review comments.

tstellarAMD marked 2 inline comments as done.Oct 13 2016, 2:10 PM
arsenm accepted this revision.Oct 13 2016, 7:39 PM
arsenm edited edge metadata.

LGTM

This revision is now accepted and ready to land.Oct 13 2016, 7:39 PM
This revision was automatically updated to reflect the committed changes.