Make the ptrtoint comparison simplification work if one side is a global.