efriedma accepted this revision. efriedma added a comment. This revision is now accepted and ready to land. LGTM, but this is complicated code, so hopefully someone else will look as well. Repository: rL LLVM https://reviews.llvm.org/D48283