RKSimon accepted this revision. RKSimon added a comment. This revision is now accepted and ready to land. LGTM (sorry was on holiday). I'll try to investigate the x86 infinite loop issue at some point soon. https://reviews.llvm.org/D36774