https://github.com/fhahn commented: Just to mention another possible alternative, @tobias-stadler has been working on emitting statistics for each function as a remark, which would allow for higher granularity. https://github.com/llvm/llvm-project/pull/163967