[CFGPrinter] Adding heat coloring to CFGPrinter
authorKirill Naumov <knaumov@azul.com>
Tue, 31 Mar 2020 18:43:25 +0000 (18:43 +0000)
committerKirill Naumov <knaumov@azul.com>
Wed, 8 Apr 2020 19:59:51 +0000 (19:59 +0000)
commit8b67853a83c16f1e97a7bda02e3cceb37b1cd7db
tree9fd97c00d2aee9de7bd9300d2b5dab148fbc2302
parent878d96011acc0314ae7e5f87aca515286abbe4db
[CFGPrinter] Adding heat coloring to CFGPrinter

This patch introduces the heat coloring of the Control Flow Graph which is based
on the relative "hotness" of each BB. The patch is a part of sequence of three
patches, related to graphs Heat Coloring.

Reviewers: rcorcs, apilipenko, davidxl, sfertile, fedor.sergeev, eraman, bollu

Differential Revision: https://reviews.llvm.org/D77161
llvm/include/llvm/Analysis/CFGPrinter.h
llvm/include/llvm/Analysis/HeatUtils.h [new file with mode: 0644]
llvm/lib/Analysis/CFGPrinter.cpp
llvm/lib/Analysis/CMakeLists.txt
llvm/lib/Analysis/HeatUtils.cpp [new file with mode: 0644]
llvm/test/Other/2007-06-05-PassID.ll
llvm/test/Other/cfg-printer-branch-weights-percent.ll [new file with mode: 0644]
llvm/test/Other/cfg-printer-branch-weights.ll
llvm/test/Other/heat-colors-graphs.ll [new file with mode: 0644]