[llvm] [InstCombine] Canonicalize the stored value type with inttoptr/ptrtoint (PR #76339)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 24 13:48:26 PST 2023


nikic wrote:

This looks like the store variant of the load fold we explicitly removed in https://github.com/llvm/llvm-project/commit/544a6aa2674e3875e4014eafb101a982f9296439. Generally we don't want to introduce type-punning between pointers and integers, as the semantics are very unclear (but it's very likely that at least one of these transforms is unsound).

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


More information about the llvm-commits mailing list