[llvm] [GlobalISel] Constant-fold G_PTR_ADD with different type sizes (PR #81473)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 16 05:19:45 PST 2024


nikic wrote:

> I wonder if G_PTR_ADD has the same semantics as IR getelementptr, where only the low order index-size bits of the pointer value are affected. @nikic do you know?

As we lower getelementptr to G_PTR_ADD, I'd expect so...

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


More information about the llvm-commits mailing list