jfb accepted this revision. jfb added a comment. This revision is now accepted and ready to land. This lgtm, considering the comments on http://reviews.llvm.org/D11470. Please do follow-up with equivalent aarch64 changes! http://reviews.llvm.org/D11472