Flags for displaying only hot nodes in CFGPrinter graph
authorKirill Naumov <knaumov@azul.com>
Sat, 22 Feb 2020 00:36:09 +0000 (16:36 -0800)
committerArtur Pilipenko <apilipenko@azulsystems.com>
Sat, 22 Feb 2020 01:20:00 +0000 (17:20 -0800)
commite33c9bb245a0c17cdd5c06897a911f908215db50
treee2c0b296a750596607139381d626fd585dbaef01
parent3648370a79235ddc7a26c2db5b968725c320f6aa
Flags for displaying only hot nodes in CFGPrinter graph

Added two flags to omit uncommon or dead paths in the CFG graphs:
  -cfg-hide-unreachable-paths
  -cfg-hide-deoptimize-paths

The main purpose is performance analysis when such block are not
"interesting" from perspective of common path performance.

Reviewed By: apilipenko, davidxl

Differential Revision: https://reviews.llvm.org/D74346
llvm/include/llvm/Analysis/CFGPrinter.h
llvm/lib/Analysis/CFGPrinter.cpp
llvm/test/Other/cfg_deopt_unreach.ll [new file with mode: 0644]