[llvm] [InstCombine] fold `sub(zext(ptrtoint), zext(ptrtoint))` (PR #115369)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 13 13:52:13 PST 2024


nikic wrote:

I believe you're doing this now, which is still incorrect: https://alive2.llvm.org/ce/z/irt9qk

Both of these variant work though: https://alive2.llvm.org/ce/z/tdpQth (I generalized inbounds -> nusw in the first one.)

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


More information about the llvm-commits mailing list