[PATCH] D73142: Heat Coloring for CFGPrinter and CallPrinter

Kirill Naumov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 21 14:32:41 PST 2020


knaumov created this revision.
knaumov added reviewers: rcorcs, apilipenko, davidxl, sfertile, fedor.sergeev, eraman, davide, bollu.
Herald added subscribers: llvm-commits, hiraditya, mgorny.
Herald added a project: LLVM.

Extends the CFGPrinter and CallPrinter with heat colors based on heuristics or profiling information.

This patch was firstly published by Rodrigo Caetano Rocha (@rcorcs) on 11/24/17. After several rounds of reviews, it was deployed, but, mainly due to the conflict with Polly, it was reverted. After that, the conflict with Polly alongside some other small issues was fixed, but never deployed. The diff then was closed due to the commit that probably happened during migration. I would like to bring this change upstream. I have taken it up to me to make some changes regarding flags initialization and refactoring some older tests to match the new output of CFGPrinter specifically. All the further info on the patch you can find in the previous reviews.

Initial diff: reviews.llvm.org/D40425 <https://reviews.llvm.org/D40425>
First commit: reviews.llvm.org/rL335996 <https://reviews.llvm.org/rL335996>
Revert commit: reviews.llvm.org/rL336000 <https://reviews.llvm.org/rL336000>
Polly fix: reviews.llvm.org/D49154 <https://reviews.llvm.org/D49154>


https://reviews.llvm.org/D73142

Files:
  llvm/include/llvm/Analysis/CFGPrinter.h
  llvm/include/llvm/Analysis/HeatUtils.h
  llvm/lib/Analysis/CFGPrinter.cpp
  llvm/lib/Analysis/CMakeLists.txt
  llvm/lib/Analysis/CallPrinter.cpp
  llvm/lib/Analysis/DomPrinter.cpp
  llvm/lib/Analysis/HeatUtils.cpp
  llvm/lib/Analysis/RegionPrinter.cpp
  llvm/lib/Passes/PassRegistry.def
  llvm/lib/Transforms/Scalar/NewGVN.cpp
  llvm/test/Other/2007-06-05-PassID.ll
  llvm/test/Other/cfg-printer-branch-weights-percent.ll
  llvm/test/Other/cfg-printer-branch-weights.ll
  polly/lib/Analysis/ScopGraphPrinter.cpp
  polly/lib/Support/RegisterPasses.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D73142.239419.patch
Type: text/x-patch
Size: 49157 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200121/177fbab4/attachment.bin>


More information about the llvm-commits mailing list