[PATCH] D49560: Add support to track total counts for DebugCounter

Zhizhou Yang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 19 10:46:21 PDT 2018


zhizhouy created this revision.
zhizhouy added a reviewer: george.burgess.iv.
Herald added a subscriber: Prazek.

This patch introduces a new member Count to DebugCounter so that it now can track the total number of execution for the Counter.

Adding this feature will help us to do automated transformation level bisecting better using DebugCounter.

One (only) use case in NewGVN.cpp is also modified since we changed related functions.

We are planning to add an actual printing for this info in a follow-up.


Repository:
  rL LLVM

https://reviews.llvm.org/D49560

Files:
  include/llvm/Support/DebugCounter.h
  lib/Support/DebugCounter.cpp
  lib/Transforms/Scalar/NewGVN.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49560.156316.patch
Type: text/x-patch
Size: 4758 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180719/e44e3d93/attachment.bin>


More information about the llvm-commits mailing list