diff options
| author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-08-21 01:42:39 +0000 |
|---|---|---|
| committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-08-21 01:42:39 +0000 |
| commit | 8df22c5c10b38f208d36041f2918ac6a535d7fe2 (patch) | |
| tree | a12516abd37107b901b016eeb00d8d3bf4e3660f /gcc/tree-inline.c | |
| parent | b87494f85672b15fd4a179cc60fcee1cb524d5dd (diff) | |
| download | ppe42-gcc-8df22c5c10b38f208d36041f2918ac6a535d7fe2.tar.gz ppe42-gcc-8df22c5c10b38f208d36041f2918ac6a535d7fe2.zip | |
PR rtl-optimization/28071
* tree-optimize.c (tree_rest_of_compilation): Do not remove edges
twice.
* tree-inline.c (copy_bb): Use cgraph_set_call_stmt.
* ipa-inline.c (cgraph_check_inline_limits): Add one_only argument.
(cgraph_decide_inlining, cgraph_decide_inlining_of_small_function,
cgraph_decide_inlining_incrementally): Update use of
cgraph_check_inline_limits.
* cgraph.c (edge_hash, edge_eq): New function.
(cgraph_edge, cgraph_set_call_stmt, cgraph_create_edge,
cgraph_edge_remove_caller, cgraph_node_remove_callees,
cgraph_remove_node): Maintain call site hash.
* cgraph.h (struct cgraph_node): Add call_site_hash.
(cgraph_set_call_stmt): New function.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116284 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-inline.c')
| -rw-r--r-- | gcc/tree-inline.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c index b05bf2665f5..78526e50bc8 100644 --- a/gcc/tree-inline.c +++ b/gcc/tree-inline.c @@ -737,14 +737,14 @@ copy_bb (copy_body_data *id, basic_block bb, int frequency_scale, int count_scal { edge = cgraph_edge (node, orig_stmt); gcc_assert (edge); - edge->call_stmt = stmt; + cgraph_set_call_stmt (edge, stmt); } /* FALLTHRU */ case CB_CGE_MOVE: edge = cgraph_edge (id->dst_node, orig_stmt); if (edge) - edge->call_stmt = stmt; + cgraph_set_call_stmt (edge, stmt); break; default: |

