[PATCH] D23593: [GenericDomTree] Change GenericDomTree to use NodeRef in GraphTraits. NFC.

Tim Shen via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 16 17:16:33 PDT 2016


timshen created this revision.
timshen added reviewers: dblaikie, chandlerc.
timshen added a subscriber: llvm-commits.

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.

https://reviews.llvm.org/D23593

Files:
  include/llvm/ADT/GraphTraits.h
  include/llvm/IR/Dominators.h
  include/llvm/Support/GenericDomTree.h
  include/llvm/Support/GenericDomTreeConstruction.h
  lib/IR/Dominators.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23593.68291.patch
Type: text/x-patch
Size: 15976 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160817/7fb15d3e/attachment.bin>


More information about the llvm-commits mailing list