[llvm] [AsmPrint] Correctly factor function entry count when dumping MBB frequencies (PR #67826)

Aiden Grossman via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 29 11:56:55 PDT 2023


boomanaiden154 wrote:

> I suspect the terminology at use here is that "frequency" means a value relative to the entry block. While I think you are asking for execution "count"s here (like the value you get when you multiply a block frequency with the entry count).

Right, but I would expect the raw frequency (`BlockFrequency::getFrequency()`) of the entry block to match the function entry count rather than having to use something like `FreqAdjustmentFactor` like is done here. I'd assume this is some artifact of how the MBFI is computed, but maybe I'm missing something?



https://github.com/llvm/llvm-project/pull/67826


More information about the llvm-commits mailing list