https://github.com/xur-llvm approved this pull request. This looks good to me. Thanks for improve the code. One small suggestion: there are many calls to allEdges().size(). How about adding one utility function, for example numEdges(), just like bbInfoSize(). https://github.com/llvm/llvm-project/pull/72207