Commit 33b92c9d by Richard Guenther Committed by Richard Biener

cgraph.h (struct cgraph_node): Remove inline_decl member.

2009-05-21  Richard Guenther  <rguenther@suse.de>

	* cgraph.h (struct cgraph_node): Remove inline_decl member.
	* ipa-inline.c (cgraph_mark_inline_edge): Do not check it.
	(cgraph_default_inline_p): Likewise.
	(cgraph_decide_inlining_incrementally): Likewise.

From-SVN: r147776
parent 63487d11
2009-05-21 Richard Guenther <rguenther@suse.de>
* cgraph.h (struct cgraph_node): Remove inline_decl member.
* ipa-inline.c (cgraph_mark_inline_edge): Do not check it.
(cgraph_default_inline_p): Likewise.
(cgraph_decide_inlining_incrementally): Likewise.
2009-05-21 H.J. Lu <hongjiu.lu@intel.com> 2009-05-21 H.J. Lu <hongjiu.lu@intel.com>
Uros Bizjak <ubizjak@gmail.com> Uros Bizjak <ubizjak@gmail.com>
......
...@@ -213,11 +213,6 @@ struct GTY((chain_next ("%h.next"), chain_prev ("%h.previous"))) cgraph_node { ...@@ -213,11 +213,6 @@ struct GTY((chain_next ("%h.next"), chain_prev ("%h.previous"))) cgraph_node {
unsigned alias : 1; unsigned alias : 1;
/* Set for nodes that was constructed and finalized by frontend. */ /* Set for nodes that was constructed and finalized by frontend. */
unsigned finalized_by_frontend : 1; unsigned finalized_by_frontend : 1;
/* In non-unit-at-a-time mode the function body of inline candidates is saved
into clone before compiling so the function in original form can be
inlined later. This pointer points to the clone. */
tree inline_decl;
}; };
typedef struct cgraph_node *cgraph_node_ptr; typedef struct cgraph_node *cgraph_node_ptr;
......
...@@ -258,9 +258,6 @@ cgraph_mark_inline_edge (struct cgraph_edge *e, bool update_original, ...@@ -258,9 +258,6 @@ cgraph_mark_inline_edge (struct cgraph_edge *e, bool update_original,
struct cgraph_node *to = NULL, *what; struct cgraph_node *to = NULL, *what;
struct cgraph_edge *curr = e; struct cgraph_edge *curr = e;
if (e->callee->inline_decl)
cgraph_redirect_edge_callee (e, cgraph_node (e->callee->inline_decl));
gcc_assert (e->inline_failed); gcc_assert (e->inline_failed);
e->inline_failed = CIF_OK; e->inline_failed = CIF_OK;
...@@ -425,8 +422,6 @@ cgraph_default_inline_p (struct cgraph_node *n, cgraph_inline_failed_t *reason) ...@@ -425,8 +422,6 @@ cgraph_default_inline_p (struct cgraph_node *n, cgraph_inline_failed_t *reason)
{ {
tree decl = n->decl; tree decl = n->decl;
if (n->inline_decl)
decl = n->inline_decl;
if (!flag_inline_small_functions && !DECL_DECLARED_INLINE_P (decl)) if (!flag_inline_small_functions && !DECL_DECLARED_INLINE_P (decl))
{ {
if (reason) if (reason)
...@@ -1417,7 +1412,7 @@ cgraph_decide_inlining_incrementally (struct cgraph_node *node, ...@@ -1417,7 +1412,7 @@ cgraph_decide_inlining_incrementally (struct cgraph_node *node,
} }
continue; continue;
} }
if (!e->callee->analyzed && !e->callee->inline_decl) if (!e->callee->analyzed)
{ {
if (dump_file) if (dump_file)
{ {
...@@ -1493,7 +1488,7 @@ cgraph_decide_inlining_incrementally (struct cgraph_node *node, ...@@ -1493,7 +1488,7 @@ cgraph_decide_inlining_incrementally (struct cgraph_node *node,
} }
continue; continue;
} }
if (!e->callee->analyzed && !e->callee->inline_decl) if (!e->callee->analyzed)
{ {
if (dump_file) if (dump_file)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment