[all-commits] [llvm/llvm-project] 9197ba: Add an option to hide "cold" blocks from CFG graph

arpilipe via All-commits all-commits at lists.llvm.org
Tue Jun 8 11:29:56 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9197bac297f73552882820ba25d245115e29e7af
      https://github.com/llvm/llvm-project/commit/9197bac297f73552882820ba25d245115e29e7af
  Author: Artur Pilipenko <apilipenko at azul.com>
  Date:   2021-06-08 (Tue, 08 Jun 2021)

  Changed paths:
    M llvm/lib/Analysis/CFGPrinter.cpp

  Log Message:
  -----------
  Add an option to hide "cold" blocks from CFG graph

Introduce a new cl::opt to hide "cold" blocks from CFG DOT graphs.
Use BFI to get block relative frequency. Hide the block if the
frequency is below the threshold set by the command line option value.

Reviewed By: davidxl, hoy
Differential Revision: https://reviews.llvm.org/D103640




More information about the All-commits mailing list