george.burgess.iv added a comment. So, to be clear, you're saying that this is (essentially) exactly https://reviews.llvm.org/D22721, but rebased and with the extra check on line 822, yes? Repository: rL LLVM https://reviews.llvm.org/D46282