The return value of a TryToUnfoldSelect call was not checked, which led to an incorrectly preserved loop info and some crash.
The original crash was reported on https://reviews.llvm.org/D59514.
LGTM (but I'm not listed as a reviewer...)
lgtm
you could just use verify<loops> to verify the loop info is correct after jt.
Use 'verify<loops>' instead.