shiltian wrote: > > Developers sometimes need to understand why a function was not inlined. > > That sounds like a job for OptimizationRemarkEmitter? Though InlineMaxBB is a debug thingy instead of missing a real optimization opportunity. https://github.com/llvm/llvm-project/pull/208755