[PATCH] D40425: Extending CFGPrinter and CallPrinter with Heat Colors

Rodrigo Caetano Rocha via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 1 06:22:25 PST 2017


rcorcs updated this revision to Diff 125125.
rcorcs added a comment.

Updates the CFGPrinters to work on a per-module basis.

Because the heat factor of each basic block is computed relative to others within the scope being analysed
if we compute the heat factor relative to the basic block with the maximum frequency within the whole module,
it should provide heat colors more representative to the true block frequencies than if we compute the same values
on a per-function basis.
Ideally, the heat map would be computed using profiling information and considering the whole program (perhaps after linking all modules).


Repository:
  rL LLVM

https://reviews.llvm.org/D40425

Files:
  include/llvm/Analysis/CFGPrinter.h
  include/llvm/Analysis/HeatUtils.h
  lib/Analysis/CFGPrinter.cpp
  lib/Analysis/CMakeLists.txt
  lib/Analysis/CallPrinter.cpp
  lib/Analysis/DomPrinter.cpp
  lib/Analysis/HeatUtils.cpp
  lib/Analysis/RegionPrinter.cpp
  lib/Passes/PassRegistry.def
  lib/Transforms/Scalar/NewGVN.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D40425.125125.patch
Type: text/x-patch
Size: 45454 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171201/1c8b3cbd/attachment.bin>


More information about the llvm-commits mailing list