This is an archive of the discontinued LLVM Phabricator instance.

[Dominators] Add NearestCommonDominator verification
ClosedPublic

Authored by kuhar on Jun 23 2017, 3:11 PM.

Details

Summary

This patch adds another verification function for checking correctness of findNearestCommonDominator.
For every edge from U to V in the input graph, NCD(U, V) == IDom(V) or V -- the new function checks this condition.

Diff Detail

Repository
rL LLVM

Event Timeline

dberlin accepted this revision.Jun 23 2017, 7:19 PM
dberlin added inline comments.
include/llvm/Support/GenericDomTreeConstruction.h
378 ↗(On Diff #103781)

probably should say what the IDOM and To are :)

This revision is now accepted and ready to land.Jun 23 2017, 7:19 PM
kuhar updated this revision to Diff 104076.Jun 26 2017, 7:00 PM

Update the diff. Improve the error message and documentation.

This revision was automatically updated to reflect the committed changes.