[PATCH] D51974: [GCOV] Remove useless loop when emiting edge counters

calixte via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 12 04:15:34 PDT 2018


calixte created this revision.
calixte added a reviewer: vsk.
Herald added a subscriber: llvm-commits.

It seems that a Module can have several Compilation Units: a gcno and a gcda are generated for each of them.

But we don't need to generate same counters stuff for each CU.

All the tests in llvm/test, clang/test & compiler_rt/test/profile are ok.


Repository:
  rL LLVM

https://reviews.llvm.org/D51974

Files:
  lib/Transforms/Instrumentation/GCOVProfiling.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51974.165059.patch
Type: text/x-patch
Size: 8561 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180912/051f8ea0/attachment.bin>


More information about the llvm-commits mailing list