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

Zhizhou Yang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 20 18:20:00 PDT 2018


zhizhouy updated this revision to Diff 156655.
zhizhouy added a comment.

Fix CodeGen/AMDGPU test failures, by adding Counters only when skip/count is set.
I believe this will save many memory when skip/count is not set, thus fixing the problem.

As a result, I also reverted the changes to make CounterDesc part of CounterInfo.

Tested with `ninja check-llvm` and `ninja check-llvm-unit`.


Repository:
  rL LLVM

https://reviews.llvm.org/D49560

Files:
  include/llvm/Support/DebugCounter.h
  lib/Support/DebugCounter.cpp
  lib/Transforms/Scalar/NewGVN.cpp
  unittests/Support/CMakeLists.txt
  unittests/Support/DebugCounterTest.cpp

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


More information about the llvm-commits mailing list