[PATCH] D104060: Machine IR Profile

Xinliang David Li via llvm-commits llvm-commits at lists.llvm.org
Sat Jun 12 17:14:13 PDT 2021


Thanks for the data.  With value profile disabled, __llvm_prf_vnds section
should not be emitted -- there is a bug in the compiler.

Thinking about MIP's use case a little, it seems that it actually matches
what xray does.  Xray has very low runtime overhead and can be turned on
always : xra <https://llvm.org/docs/XRay.html>y. Have you compare with xray
and consider using that?

David

ellis added a comment.
>
> @davidxl
>
> I've added text size data to
> https://gist.github.com/ellishg/92a68cf82bfdeccd10225154425edc69#gistcomment-3778109
> and hopefully it is more clear. I randomly chose the test
> `MultiSource/Benchmarks/FreeBench/fourinarow.test` to show the size data.
> You can see the raw data in
> https://gist.github.com/ellishg/156639f24d728a88067f903cb53e1643
>
> Base
> ====
>
>   "size..text": 4629
>   "size..data": 8,
>   "size..bss": 120,
>
> MIP
> ===
>
>   "size..text": 4741,
>   "size..data": 8,
>   "size.__llvm_mipmap": 768,
>   "size.__llvm_mipraw": 41,
>   "size..bss": 120,
>
> `-fcs-profile-generate`
> =======================
>
>   "size..text": 24322,
>   "size..data": 176,
>   "size.__llvm_prf_cnts": 1336,
>   "size.__llvm_prf_data": 816,
>   "size.__llvm_prf_names": 117,
>   "size.__llvm_prf_vnds": 24576,
>   "size..bss": 8952,
>
>
> Repository:
>   rG LLVM Github Monorepo
>
> CHANGES SINCE LAST ACTION
>   https://reviews.llvm.org/D104060/new/
>
> https://reviews.llvm.org/D104060
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210612/f4605592/attachment.html>


More information about the llvm-commits mailing list