lattner added a comment. I haven't reviewed the patch in full detail, but the predicate "comesBefore" should probably be something like "isBeforeInBlock". CHANGES SINCE LAST ACTION https://reviews.llvm.org/D51664/new/ https://reviews.llvm.org/D51664