[PATCH] D142162: [Dominators] Use GraphTraits::getEntryNode instead of front(). (NFC)

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 20 07:08:21 PST 2023


fhahn updated this revision to Diff 490825.
fhahn added a comment.

Implement and use DomTreeNodeTraits for customization. Clients can implement DomTreeNodeTraitsCustom to provide custom ParentPtr, getEntryNode and getParent. There's also a default specialization if DomTreeNodeTraitsCustom is not implemented, that assume a Function-like NodeT. This is what is used for the existing DominatorTree and MachineDominatorTree.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D142162/new/

https://reviews.llvm.org/D142162

Files:
  llvm/include/llvm/Support/GenericDomTree.h
  llvm/lib/Transforms/Vectorize/VPlan.h
  llvm/lib/Transforms/Vectorize/VPlanCFG.h
  llvm/lib/Transforms/Vectorize/VPlanDominatorTree.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142162.490825.patch
Type: text/x-patch
Size: 6692 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230120/53388f14/attachment.bin>


More information about the llvm-commits mailing list