[InstCombine] Fix IC trying to create a xor of pointer types.
We were previously crashing here because icmp operands can be pointers as well as integers, and the code didn't check before building a xor. I've fixed this by doing a ptrtoint convert on the assumption that ptrtoints are free.
rdar://42473741