mzolotukhin added a comment. Thanks, committed in r278038. > Would it make sense to only fill in LoopsToSimplify if OuterL is null? I think the checks will clutter the code for not so big benefit, so I decided to go without them. Repository: rL LLVM https://reviews.llvm.org/D23148