Files
clang-p2996/llvm/test/Transforms/InstSimplify/ptrtoint.ll
Nikita Popov 9d34b673c0 [InstSimplify] Fold ptrtoint(ptradd(P,X-ptrtoint(P))) to X (#98649)
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.
2024-07-15 09:26:03 +02:00

5.7 KiB