[llvm-branch-commits] [llvm] AMDGPU/GlobalISel: Fix G_PTR_ADD handling in getBaseWithConstantOffset (PR #213968)

Petar Avramovic via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Aug 5 02:46:58 PDT 2026


petar-avramovic wrote:

> Does the `nuw` come from `inbounds`? I thought that was why GEP had a separate `nuw` flag on it.

yes, see https://github.com/llvm/llvm-project/pull/151708
`getelementptr inbounds` -> `nuw nusw inbounds G_PTR_ADD`

https://github.com/llvm/llvm-project/pull/213968


More information about the llvm-branch-commits mailing list