[PATCH] D93036: [llvm-cov][gcov] Optimize the cycle counting algorithm by skipping zero count cycles

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 10 14:46:46 PST 2020


MaskRay accepted this revision.
MaskRay added a comment.
This revision is now accepted and ready to land.

Thanks!



================
Comment at: compiler-rt/test/profile/gcov-complex-line.c:6
+// RUN: %clang --coverage %s -o %t.bin
+// RUN: test -f gcov-complex-line.gcno
+// RUN: rm -f gcov-complex-line.gcda && %run %t.bin
----------------
This line can be deleted since checking the existence of .gcno is out of the scope of this patch.


================
Comment at: compiler-rt/test/profile/gcov-complex-line.c:55
+  // 2^256, where 256 is the number of expansions of M_0.
+  COMPLEX_LINE; // CHECK: 101: [[@LINE]]: COMPLEX_LINE;
+}
----------------
`[[@LINE]]` is a deprecated FileCheck syntax. Use `[[#@LINE]]`


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D93036/new/

https://reviews.llvm.org/D93036



More information about the llvm-commits mailing list