Re: [PATCH v9] pgo: add clang's Profile Guided Optimization infrastructure

From
Nick Desaulniers <ndesaulniers@google.com>
Date
2021-06-14 18:09:28
Also in
linux-kbuild, linux-toolchains, lkml
Reply to
Kees Cook, 2021-06-14
On Mon, Jun 14, 2021 at 9:23 AM Kees Cook [off-list ref] wrote:
On Mon, Jun 14, 2021 at 05:35:45PM +0200, Peter Zijlstra wrote:
quoted
On Mon, Jun 14, 2021 at 08:26:01AM -0700, Kees Cook wrote:
quoted
So, AFAICT, the original blocking issue ("PGO does not respect noinstr")
is not actually an issue (noinstr contains notrace, which IS respected
by PGO[2]), I think this is fine to move forward.
It is *NOT*: https://godbolt.org/z/9c7xdvGd9

Look at how both compilers generate instrumentation in the no_instr()
function.
Well that's disappointing. I'll put this on hold until Clang can grow an
appropriate attribute (or similar work-around). Thanks for catching
that.
Cross referencing since these two threads are related.
https://lore.kernel.org/lkml/CAKwvOdmPTi93n2L0_yQkrzLdmpxzrOR7zggSzonyaw2PGshApw@mail.gmail.com/ (local)
-- 
Thanks,
~Nick Desaulniers
Thread (99 messages) 99 messages, 10 authors, last reply 2021-06-14
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help