[PATCH] D64359: [LOOPINFO] Add member function to retrieve loops in breadth-first order

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 9 09:58:14 PDT 2019


fhahn added a comment.

In D64359#1576307 <https://reviews.llvm.org/D64359#1576307>, @etiotto wrote:

> I can use breadth_first from ADT/BreadthFirstIterator.h to collect the loops in breadth-first order. Arguably the getLoopsInPreorder()  member functions could also be removed in favor of using ADT/DepthFirstIterator.h (need to confirm whether that does a preorder traversal).


Yep, that was something I wanted to look into as a follow up.


Repository:
  rL LLVM

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

https://reviews.llvm.org/D64359





More information about the llvm-commits mailing list