[PATCH] inline: do not inline when no_profile_instrument_function is different

Martin Liška mliska@suse.cz
Wed Aug 18 08:38:26 GMT 2021

On 6/23/21 3:15 PM, Martin Liška wrote:
> On 6/23/21 2:38 PM, Jan Hubicka wrote:
>> Is there reason to prevent the inlining once instrumentation is done?
> No ;)
>> I think you can just block it for early inliner.
> Sure. Do you have a handy predicate function that tells if einliner is done?
> Thanks,
> Martin


There's updated version of that patch that blocks inlining only during einline IPA pass.

Patch can bootstrap on x86_64-linux-gnu and survives regression tests.

Ready to be installed?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-inline-do-not-einline-when-no_profile_instrument_fun.patch
Type: text/x-patch
Size: 2396 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20210818/4801e30a/attachment.bin>

More information about the Gcc-patches mailing list