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

Vedant Kumar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 12 11:58:03 PDT 2018


vsk added a comment.

It would help to have a regression test for this (somewhere in test/Transforms/GCOVProfiling). Something that exercises emitProfileArcs with 2 CU's would work.

Here's a starting point: F7185395: 0001-Add-a-regression-test-for-emitProfileArcs.patch <https://reviews.llvm.org/F7185395>

Note that this actually crashes somewhere in emitProfileNotes. ASan reports a heap buffer overflow.


Repository:
  rL LLVM

https://reviews.llvm.org/D51974





More information about the llvm-commits mailing list