ruiu accepted this revision. ruiu added a comment. This revision is now accepted and ready to land. LGTM I think we can improve the code by reordering these conditions, but we can do that later. Repository: rL LLVM https://reviews.llvm.org/D31835