This is an archive of the discontinued LLVM Phabricator instance.

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

Authored by fhahn on Feb 5 2018, 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

Event Timeline

fhahn created this revision.Feb 5 2018, 6:07 AM

Looks good to me.
Thanks

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