https://github.com/andykaylor commented: lgtm Collecting these in multiple passes vs. just pruning them earlier feels like unnecessary overhead, but that's something we can work on later. https://github.com/llvm/llvm-project/pull/224609