From: Martin Jambor Date: Tue, 18 Jun 2019 08:14:09 +0000 (+0200) Subject: Fix IPA-CP topological sorting X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c6ece5c1349cb3205288efe76df9039a8390e20d;p=gcc.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 51f9cd22ebc..c2c3089736f 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 a0f6f23829b..d3a88756a91 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)); }