<div dir="ltr"><div>I'm looking for something like GCC's domwalk: <a href="https://gcc.gnu.org/viewcvs/gcc/trunk/gcc/domwalk.c?view=markup">https://gcc.gnu.org/viewcvs/gcc/trunk/gcc/domwalk.c?view=markup</a>. </div><div><br></div>Just in case I am not missing anything, do we have a library function to walk a DominatorTree in the DFS order instead of writing that from scratch? <div><br></div><div>Jingyue</div></div>