This is an archive of the discontinued LLVM Phabricator instance.

[Loops] Restructure the LoopInfo verify function so that it more directly walks the current loop structure verifying that a matching structure can be found in a freshly computed version.
ClosedPublic

Authored by chandlerc on Jan 25 2017, 11:29 AM.

Details

Summary

Also pull things out of containers when necessary once an issue is found
and print them directly.

This makes it substantially easier to debug verification failures as
the process stops at the exact point in the loop nest where they diverge
and has in easily accessed local variables (or printed to stderr
already) the loops and other information needed to analyze the failure.

Diff Detail

Repository
rL LLVM

Event Timeline

chandlerc created this revision.Jan 25 2017, 11:29 AM
This revision is now accepted and ready to land.Jan 25 2017, 1:37 PM
This revision was automatically updated to reflect the committed changes.