I've found an issue with PHIs using this patch causing an assertion failure, so it looks like it's not quite ready for review after all. I'll fix it and update. Cheers. Tim. http://reviews.llvm.org/D4083