john.brawn added a comment. There's no fundamental reason why a mixture of phi and select can't be handled, but this patch probably makes more sense in the context of later patches. I'll hold off reviewing it until then. https://reviews.llvm.org/D38533