diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-06-10 20:06:48 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-06-10 20:06:48 +0000 |
commit | 8c1fce46fc02e43e82b05f49894690133a1bcdcf (patch) | |
tree | b4c63c4e36083749fdc5d207881d81ca1a95d246 /gcc/ipa-pure-const.c | |
parent | aa5b1dc0e03b554f3258cecc6d30cc7a9f6bb128 (diff) | |
download | gcc-8c1fce46fc02e43e82b05f49894690133a1bcdcf.tar.gz |
* cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
setting the nothrow flag.
* ipa-reference.c (propagate): Skip aliases.
* ipa-pure-const.c (propagate_pure_const): Skip aliases.
(propagate_nothrow): Skip aliases; do not update cgraph.
(local_pure_const): Do not update cgraph.
* tree-profile.c (tree_profiling): Do fixup_cfg.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174929 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ipa-pure-const.c')
-rw-r--r-- | gcc/ipa-pure-const.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/gcc/ipa-pure-const.c b/gcc/ipa-pure-const.c index b56e48ad6f0..0414273c655 100644 --- a/gcc/ipa-pure-const.c +++ b/gcc/ipa-pure-const.c @@ -1116,6 +1116,9 @@ propagate_pure_const (void) int count = 0; node = order[i]; + if (node->alias) + continue; + if (dump_file && (dump_flags & TDF_DETAILS)) fprintf (dump_file, "Starting cycle\n"); @@ -1383,6 +1386,9 @@ propagate_nothrow (void) bool can_throw = false; node = order[i]; + if (node->alias) + continue; + /* Find the worst state for any node in the cycle. */ w = node; while (w) @@ -1430,10 +1436,7 @@ propagate_nothrow (void) funct_state w_l = get_function_state (w); if (!can_throw && !TREE_NOTHROW (w->decl)) { - struct cgraph_edge *e; cgraph_set_nothrow_flag (w, true); - for (e = w->callers; e; e = e->next_caller) - e->can_throw_external = false; if (dump_file) fprintf (dump_file, "Function found to be nothrow: %s\n", cgraph_node_name (w)); @@ -1640,11 +1643,7 @@ local_pure_const (void) } if (!l->can_throw && !TREE_NOTHROW (current_function_decl)) { - struct cgraph_edge *e; - cgraph_set_nothrow_flag (node, true); - for (e = node->callers; e; e = e->next_caller) - e->can_throw_external = false; changed = true; if (dump_file) fprintf (dump_file, "Function found to be nothrow: %s\n", |