[llvm] [InstComb] Fold inttoptr (add (ptrtoint %B), %O) -> GEP for ICMP users. (PR #153421)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 14 03:41:03 PDT 2025


fhahn wrote:

> Try to convert inttoptr(add(ptrtoint)) to GEP when provenance doesn't matter"

I generally try to keep the length <= 72 chars, to avoid truncation in some clients. Updated to `[InstComb] Fold inttoptr (add (ptrtoint %B), %O) -> GEP for ICMP users.`

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


More information about the llvm-commits mailing list