[llvm] [GlobalISel] Check width of APInts in Reassoc PtrAdd combine (PR #84335)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 8 04:11:22 PST 2024


jayfoad wrote:

> Allowing arbitrary widths for the RHS of G_PTR_ADD makes me very uncomfortable. I would much prefer enforcing that the RHS has the same bitwidth as the index size of the pointer's address space. See also #81473.

#84352

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


More information about the llvm-commits mailing list