[LoopInterchange] Check number of latch successors before accessing them.
ClosedPublic

Authored by fhahn on Mon, Feb 5, 6:07 AM.

Details

Summary

In cases where the OuterMostLoopLatchBI only has a single successor,
accessing the second successor will fail.

This fixes a failure when building the test-suite with loop-interchange
enabled.

Diff Detail

Repository
rL LLVM
fhahn created this revision.Mon, Feb 5, 6:07 AM

Looks good to me.
Thanks

This revision was not accepted when it landed; it landed in state Needs Review.Tue, Feb 13, 2:06 AM
This revision was automatically updated to reflect the committed changes.