aemerson accepted this revision. aemerson added a comment. This revision is now accepted and ready to land. LGTM from a GISel point of view, I can't say I understand Windows enough to say the tests are right. https://reviews.llvm.org/D42568