[llvm] [ADT] Use SmallVector in df_iterator. NFC (PR #225787)

Alexis Engelke via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 23 07:11:40 PDT 2026


https://github.com/aengelke approved this pull request.

LGTM. What are hot users of df_iterator?

(Aside: df_iterator should, ideally, be refactored into a structure like PostOrderTraversal to not store the state in the iterators, no longer use this strange iterator storage scheme, and support using block numbers. Unfortunately, refactoring df_iterator is rather difficult as it is used rather often in cases where single iterators are returned instead of ranges...)

https://github.com/llvm/llvm-project/pull/225787


More information about the llvm-commits mailing list