This is a special case of the general ptrtoint(gep) to add(ptrtoint) transform that is particularly profitable, as everything folds away. Proof: https://alive2.llvm.org/ce/z/fwv8_L Fixes https://github.com/llvm/llvm-project/issues/86417.
5.7 KiB
5.7 KiB