[all-commits] [llvm/llvm-project] f17948: [AsmPrint] Correctly factor function entry count w...

Mircea Trofin via All-commits all-commits at lists.llvm.org
Fri Sep 29 18:07:06 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f179486204135b67af53dcdd45c4b4f16dce2801
      https://github.com/llvm/llvm-project/commit/f179486204135b67af53dcdd45c4b4f16dce2801
  Author: Mircea Trofin <mtrofin at google.com>
  Date:   2023-09-29 (Fri, 29 Sep 2023)

  Changed paths:
    M llvm/include/llvm/CodeGen/MachineBlockFrequencyInfo.h
    M llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
    M llvm/test/CodeGen/Generic/bb-profile-dump.ll

  Log Message:
  -----------
  [AsmPrint] Correctly factor function entry count when dumping MBB frequencies (#67826)

The goal in #66818 was to capture function entry counts, but those are not the same as the frequency of the entry (machine) basic block. This fixes that, and adds explicit profiles to the test.

We also increase the precision of `MachineBlockFrequencyInfo::getBlockFreqRelativeToEntryBlock` to double. Existing code uses it as float so should be unaffected.




More information about the All-commits mailing list