[llvm-branch-commits] [llvm] [DataLayout][LangRef] Split non-integral and unstable pointer properties (PR #105735)

Nikita Popov via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Jul 31 02:26:44 PDT 2025


nikic wrote:

> I'm not actively aware of any cases where the non-integrality is being used to block invalid optimizations ... but I do know that, for example, SeparateConstOffsetFromGEP has a mode (which I think Nvidia uses) that turns pointer arithmetic into ptrtoint/inttoptr pairs.

This one already guards against pointer vs index size mismatch. But after looking at this, I've put up https://github.com/llvm/llvm-project/pull/151477 to drop this code entirely. This is not a reasonable thing to do, any it doesn't look like it's actually used anymore.

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


More information about the llvm-branch-commits mailing list