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

Thorsten Schütt via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 12 04:26:36 PST 2024


tschuett wrote:

I am not yet convinced.
```
G_PTR_ADD p8 %5, s32 %6
```
The pointer and the offset have different types and probably different sizes. p8 could be some weird 128bit pointer in address space 8.

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


More information about the llvm-commits mailing list