MatzeB added a comment. In the interest of not having this lying around uncommitted for much longer, I am committing this without the RegisterScavenging parts (the RegisterScavenging rewrite this was based on caused build failures). Repository: rL LLVM https://reviews.llvm.org/D21916