[PATCH] D49460: Flush counters before forking to avoid counting the execution before fork twice

Marco Castelluccio via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 19 15:00:30 PDT 2018


Il 19/07/2018 19:15, Xinliang David Li ha scritto:

>
>
> On Thu, Jul 19, 2018 at 1:43 AM Marco Castelluccio
> <mcastelluccio at mozilla.com <mailto:mcastelluccio at mozilla.com>> wrote:
>
>     Il 18/07/2018 20:52, David Li via Phabricator ha scritto:
>
>     > davidxl added inline comments.
>     >
>     >
>     > ================
>     > Comment at: test/profile/Inputs/instrprof-gcov-fork.c.gcov:9
>     > +// CHECK-NEXT:function func1 called 1 returned 100% blocks
>     executed 100%
>     > +// CHECK-NEXT:        2:    3:void func1() {}
>     > +// CHECK-NEXT:function func2 called 2 returned 100% blocks
>     executed 100%
>     > ----------------
>     > func1 is executed once not twice.
>     This is a pre-existing problem
>     (https://bugs.llvm.org/show_bug.cgi?id=38065), but you can see that
>     after the patch it is actually executed once ("called 1").
>
>
> why is the entry count shows 2 here? This looks like a different issue
> though.

Maybe it's https://bugs.llvm.org/show_bug.cgi?id=38223.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180720/d66f2b40/attachment.html>


More information about the llvm-commits mailing list