My understanding is that the problematic situation is when we create speculation,
insert it to the priority queue and then decide it is useless.
This is done by speculation_useful_p and that checks more than just the fact whether function is inlinable (it accepts targets declared as PURE/CONST but also punts on cold
calls).
It also checks inline limits. So won't it break when these things are not in sync?

Honza

Dne 2019-06-06 10:46, Martin Liška napsal:
Hi.

This is rebased version of the patch that Martin J. wrote.

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

Thanks,
Martin

Reply via email to