Re: [PATCH v1 0/4] Perf tool LTO support

From: Nick Desaulniers
Date: Mon Jul 24 2023 - 17:15:27 EST


On Mon, Jul 24, 2023 at 1:12 PM Ian Rogers <irogers@xxxxxxxxxx> wrote:
>
> Add a build flag, LTO=1, so that perf is built with the -flto
> flag. Address some build errors this configuration throws up.

Hi Ian,
Thanks for the performance numbers. Any sense of what the build time
numbers might look like for building perf with LTO?

Does `-flto=thin` in clang's case make a meaningful difference of
`-flto`? I'd recommend that over "full LTO" `-flto` when the
performance difference of the result isn't too meaningful. ThinLTO
should be faster to build, but I don't know that I've ever built perf,
so IDK what to expect.
--
Thanks,
~Nick Desaulniers