Fix IPA-CP topological sorting
authorMartin Jambor <mjambor@suse.cz>
Tue, 18 Jun 2019 08:14:09 +0000 (10:14 +0200)
committerMartin Jambor <jamborm@gcc.gnu.org>
Tue, 18 Jun 2019 08:14:09 +0000 (10:14 +0200)
2019-06-18  Martin Jambor  <mjambor@suse.cz>

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

gcc/ChangeLog
gcc/ipa-cp.c

index 51f9cd22ebc70702802cb5b3c4407912b8f14c7f..c2c3089736f39fc5edb2a73faabce41b4c64e6ef 100644 (file)
@@ -1,3 +1,9 @@
+2019-06-18  Martin Jambor  <mjambor@suse.cz>
+
+       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  <alejandro.martinezvicente@arm.com>
 
        * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
index a0f6f23829b6300d546b8f4e9d398134b8833220..d3a88756a911af2a28d739ac9c434b4296ac149d 100644 (file)
@@ -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));
 }