This is an archive of the discontinued LLVM Phabricator instance.

Move NearestCommonDominator class into common code.
AbandonedPublic

Authored by arsenm on Feb 3 2014, 6:43 PM.

Details

Reviewers
rafael
Summary

Use the dominator base class so it could also be used for machine dominators.
This is a helper class for more efficiently finding the common dominator of N nodes, rather than only two as findNearestCommonDominator does.

This is the result of the discussion had previously when I moved StructurizeCFG out of R600:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20130603/176639.html

Diff Detail

Event Timeline

The typedef of DTN2UnsignedMap in StructurizeCFG.cpp is now dead, no?

arsenm updated this revision to Unknown Object (????).Feb 4 2014, 10:22 AM

Remove now unused typedef

rafael accepted this revision.Feb 13 2014, 4:32 PM

LGTM assuming a use with machine basic blocks is coming soon.

Just one somewhat related request. Try to do a build with -Wweak-vtables? I remember seeing some warning on this area last time I used it.

Looks like patch was not committed.

arsenm abandoned this revision.Nov 28 2016, 7:24 PM