[AMDGPU] Use depth first iterator instead of recursive DFS. NFCI.
The reason for this is to avoid deep recursion in DFS() which can cause stack overflow on large CFGs, especially on Windows. Differential Revision: https://reviews.llvm.org/D98528
Loading
Please sign in to comment