HomePhabricator

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

Authored by mbrkusanin on Jan 28 2021, 2:08 AM.

Description

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

Look throught 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.

Differential Revision: https://reviews.llvm.org/D95242