- ptrtoint and inttoptr are defined as no-op casts if the integer value as the same size as the pointer value. The pair of ptrtoint/inttoptr is in fact a no-op cast sequence between different address spaces. Teach infer-address-spaces to handle them like a bitcast.
SROA part is split into https://reviews.llvm.org/D81943
Probably should use filecheck variables to avoid depending on the numbers