]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix IPA-CP topological sorting
authorjamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 18 Jun 2019 08:14:09 +0000 (08:14 +0000)
committerjamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 18 Jun 2019 08:14:09 +0000 (08:14 +0000)
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@272408 138bc75d-0d04-0410-961f-82ee72b054a4

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));
 }