diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2019-11-13 20:42:02 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2019-11-13 19:42:02 +0000 |
commit | 223f4b10e9d753021825d47fbd59072536f2c264 (patch) | |
tree | 79b59ed0e51df01983a95ce5f3211e4225fb8fb6 | |
parent | cca78449beb70da5d1e65e206044b3ef22a48b55 (diff) | |
download | gcc-223f4b10e9d753021825d47fbd59072536f2c264.zip gcc-223f4b10e9d753021825d47fbd59072536f2c264.tar.gz gcc-223f4b10e9d753021825d47fbd59072536f2c264.tar.bz2 |
ipa-cp.c (ignore_edge_p): Do not check caller flags.
* ipa-cp.c (ignore_edge_p): Do not check caller flags.
(propagate_constants_topo): Fix typo.
From-SVN: r278156
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/ipa-cp.c | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b51665e..25fee66 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2019-11-13 Jan Hubicka <hubicka@ucw.cz> + + * ipa-cp.c (ignore_edge_p): Do not check caller flags. + (propagate_constants_topo): Fix typo. + 2019-11-13 Aldy Hernandez <aldyh@redhat.com> * Makefile.in (OBJS): Add value-range.o. diff --git a/gcc/ipa-cp.c b/gcc/ipa-cp.c index 901962b..6acfb2b 100644 --- a/gcc/ipa-cp.c +++ b/gcc/ipa-cp.c @@ -816,9 +816,7 @@ 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, optimize) || !opt_for_fn (ultimate_target->decl, optimize) - || !opt_for_fn (e->caller->decl, flag_ipa_cp) || !opt_for_fn (ultimate_target->decl, flag_ipa_cp)); } @@ -3246,7 +3244,7 @@ propagate_constants_topo (class ipa_topo_info *topo) if (opt_for_fn (v->decl, flag_ipa_cp) && opt_for_fn (v->decl, optimize)) push_node_to_stack (topo, v); - /* When V is not optimized, we can not push it to stac, but + /* When V is not optimized, we can not push it to stack, but still we need to set all its callees lattices to bottom. */ else { |