On 4 Sep 2013, at 20:59, Eli Friedman <eli.friedman at gmail.com> wrote: > Or it could have been a ptrtoint+inttoptr pair originally, which would get turned into a bitcast by instcombine. > > I don't see what's wrong with the choice of turning such a bitcast back into a ptrtoint+inttoptr pair. Yes, that's probably the best approach. David