This is an archive of the discontinued LLVM Phabricator instance.

[MachineDominatorTree] Add a verifier for the MDT. NFC.
ClosedPublic

Authored by mcrosier on Jun 23 2016, 1:00 PM.

Details

Summary

For the most part, this mirrors the verified for the IR level Dominator tree.

By default the verifier is off until we can make sure the MDT is being properly preserved. Once any/all issues have been address we should default 'VerifyMachineDomInfo' to true when expensive checks are enabled.

I still need to add test cases, which will soon follow. This is done by adding '-verify-machine-dom-info' to a RUN command for an existing (or new) lit test.

Hopefully, this will help shake out any bugs.

Chad

Diff Detail

Repository
rL LLVM

Event Timeline

mcrosier updated this revision to Diff 61710.Jun 23 2016, 1:00 PM
mcrosier retitled this revision from to [MachineDominatorTree] Add a verifier for the MDT. NFC..
mcrosier updated this object.
mcrosier added reviewers: iteratee, haicheng, gberry.
mcrosier added subscribers: echristo, llvm-commits.
mcrosier updated this revision to Diff 61722.Jun 23 2016, 1:58 PM

-Add a test case.

iteratee accepted this revision.Jun 23 2016, 2:49 PM
iteratee edited edge metadata.
This revision is now accepted and ready to land.Jun 23 2016, 2:49 PM
This revision was automatically updated to reflect the committed changes.