This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Fix MMO when splitting spill
ClosedPublic

Authored by arsenm on Nov 22 2016, 1:37 PM.

Details

Summary

The size and offset were wrong. The size of the object was
being used for the size of the access, when here it is really
being split into 4-byte accesses. The underlying object size
is set in the MachinePointerInfo, which also didn't have the
offset set.

Diff Detail

Event Timeline

arsenm updated this revision to Diff 78934.Nov 22 2016, 1:37 PM
arsenm retitled this revision from to AMDGPU: Don't re-create MMO when spilling.
arsenm updated this object.
arsenm added a subscriber: llvm-commits.
kzhuravl accepted this revision.Nov 22 2016, 2:31 PM
kzhuravl added a reviewer: kzhuravl.

LGTM

This revision is now accepted and ready to land.Nov 22 2016, 2:31 PM
arsenm updated this revision to Diff 79009.Nov 22 2016, 5:41 PM
arsenm retitled this revision from AMDGPU: Don't re-create MMO when spilling to AMDGPU: Fix offset when splitting spills.
arsenm updated this object.
arsenm edited edge metadata.

This was actually a bug before and a new MMO should be used with the offset added from the split spill

arsenm updated this revision to Diff 79091.Nov 23 2016, 8:28 AM
arsenm edited edge metadata.

Fix using wrong size and offsets

arsenm updated this revision to Diff 79095.Nov 23 2016, 8:34 AM
arsenm retitled this revision from AMDGPU: Fix offset when splitting spills to AMDGPU: Fix MMO when splitting spill.
arsenm updated this object.
arsenm edited edge metadata.

Attach correctly split patch

tstellarAMD accepted this revision.Nov 23 2016, 12:43 PM
tstellarAMD edited edge metadata.

LGTM.

arsenm closed this revision.Nov 23 2016, 1:10 PM

r287806