https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87525
--- Comment #24 from Martin Jambor <jamborm at gcc dot gnu.org> --- Author: jamborm Date: Thu Mar 14 16:54:43 2019 New Revision: 269688 URL: https://gcc.gnu.org/viewcvs?rev=269688&root=gcc&view=rev Log: Zero local estimated benefit for cloning extern inline function 2019-03-14 Martin Jambor <mjam...@suse.cz> Backport from mainline 2019-03-07 Martin Jambor <mjam...@suse.cz> PR lto/87525 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit for extern inline functions. testsuite/ * gcc.dg/ipa/ipcp-5.c: New test. Added: branches/gcc-7-branch/gcc/testsuite/gcc.dg/ipa/ipcp-5.c Modified: branches/gcc-7-branch/gcc/ChangeLog branches/gcc-7-branch/gcc/ipa-cp.c branches/gcc-7-branch/gcc/testsuite/ChangeLog