dberlin added a comment. I don't think there is any ideal here. In the example you give, it reduces the number of bitcasts. In some of the tests you've changed, it adds more. Repository: rL LLVM https://reviews.llvm.org/D36878