From: Martin Jambor Date: Tue, 18 Jun 2019 08:14:09 +0000 (+0200) Subject: Fix IPA-CP topological sorting X-Git-Tag: upstream/12.2.0~23877 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c6ece5c1349cb3205288efe76df9039a8390e20d;p=platform%2Fupstream%2Fgcc.git Fix IPA-CP topological sorting 2019-06-18 Martin Jambor PR ipa/90889 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the caller does not have flag_ipa_cp set. From-SVN: r272408 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 51f9cd2..c2c3089 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2019-06-18 Martin Jambor + + PR ipa/90889 + * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the + caller does not have flag_ipa_cp set. + 2019-06-18 Alejandro Martinez * config/aarch64/aarch64-sve.md (mask_fold_left_plus_): Renamed diff --git a/gcc/ipa-cp.c b/gcc/ipa-cp.c index a0f6f23..d3a8875 100644 --- a/gcc/ipa-cp.c +++ b/gcc/ipa-cp.c @@ -817,7 +817,6 @@ ignore_edge_p (cgraph_edge *e) = e->callee->function_or_virtual_thunk_symbol (&avail, e->caller); return (avail <= AVAIL_INTERPOSABLE - || !opt_for_fn (e->caller->decl, flag_ipa_cp) || !opt_for_fn (ultimate_target->decl, flag_ipa_cp)); }