Hi, LLVM<div><br></div><div>  Recently I am refactoring the dominators tree implementation in LLVM for Clang. In order to deal with different GraphTraits implementation between LLVM and Clang,  I also made two changes to LLVM dominators tree implementation:</div>
<div>(1) Change the recalculate() template function to only rely on GraphTraits.</div><div>(2) Add a size() method to GraphTraits template class to query the number of nodes in the graph.</div><div><br></div><div> Attached is the patch. I also include the clang side patch for reference. Please let me know your comments. Thanks!</div>
<div><br></div><div>--</div><div>Guoping</div>