[PATCH] D154695: [Coroutines] Add an O(n) algorithm for computing the cross suspend point information.

Matthias Braun via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 31 17:28:19 PDT 2023


MatzeB added a comment.

Can't you use a reverse-port-order (see PostOrderIterator.h / ReversePostOrderTraversal) to get a topological sorting of CFG blocks? That is a simpler algorithm than the one here and it already exists as a helper function in LLVM!


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D154695



More information about the llvm-commits mailing list