[llvm] [LICM] Prevent LICM of ptrtoint and inttoptr when using non-integral pointers (PR #97272)
Csanád Hajdú via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 4 01:38:02 PDT 2024
Il-Capitano wrote:
I'm closing this PR, as the intended solution seems to be to use a noinline function in place of pointer casts before relocations are finalized. I also realized that if we wanted to make `inttoptr` and `ptrtoint` follow similar semantics with non-integral pointers, other passes need to be changed as well, not just LICM, e.g. https://godbolt.org/z/ejqzbos7f.
https://github.com/llvm/llvm-project/pull/97272
More information about the llvm-commits
mailing list