This is an archive of the discontinued LLVM Phabricator instance.

[GenericDomTree] Change GenericDomTree to use NodeRef in GraphTraits. NFC.
ClosedPublic

Authored by timshen on Aug 16 2016, 5:16 PM.

Details

Summary

Looking at the implementation, GenericDomTree has more specific
requirements on NodeRef, e.g. NodeRefObject->getParent() should compile,
and NodeRef should be a pointer. We can remove the pointer requirement,
but it seems to have little gain, given the limited use cases.

Also changed GraphTraits<Inverse<Inverse<T>> to be more accurate.

Diff Detail

Event Timeline

timshen updated this revision to Diff 68291.Aug 16 2016, 5:16 PM
timshen retitled this revision from to [GenericDomTree] Change GenericDomTree to use NodeRef in GraphTraits. NFC..
timshen updated this object.
timshen added reviewers: dblaikie, chandlerc.
timshen added a subscriber: llvm-commits.
dblaikie accepted this revision.Aug 17 2016, 11:15 AM
dblaikie edited edge metadata.
This revision is now accepted and ready to land.Aug 17 2016, 11:15 AM
This revision was automatically updated to reflect the committed changes.