Fold trunc ptrtoint/ptrtoaddr to N -> 0 when all N bits are zero due to alignment. To Avoid regression due to icmp_ne(and(x,1),0) -> trunc(x) fold https://github.com/llvm/llvm-project/issues/172888 Proof: https://alive2.llvm.org/ce/z/ZS-QJL
6.5 KiB
6.5 KiB