wenlei added a comment. Maybe getEntrySampleEstimate? the heuristic doesn't guarantee we get the counts for entry BB. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D130281/new/ https://reviews.llvm.org/D130281