This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU][GlobalISel] Handle G_PTR_ADD when looking for constant offset
ClosedPublic

Authored by mbrkusanin on Jan 22 2021, 8:32 AM.

Details

Summary

Look through G_PTRTOINT and G_PTR_ADD nodes when looking for constant
offset for buffer stores. This also helps with merging of these instructions
later on.

Diff Detail

Unit TestsFailed

Event Timeline

mbrkusanin created this revision.Jan 22 2021, 8:32 AM
mbrkusanin requested review of this revision.Jan 22 2021, 8:32 AM
mbrkusanin edited the summary of this revision. (Show Details)Jan 22 2021, 8:33 AM

I don't like the test name, because there isn't a .merge intrinsic

  • Rebase and rename test
arsenm accepted this revision.Jan 27 2021, 10:37 AM
This revision is now accepted and ready to land.Jan 27 2021, 10:37 AM