This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[tree-ssa] Fix function body estimation


Hi,
this patch solves another problem with unit-at-a-time in C++.
I will apply it as obivous if it passes checking.
I would also like to write generic version of estimate_num_insns.  Where is full generic gramar?

Honza

2003-10-18  Jan Hubicka  <jh@suse.cz>
	* cgraphunit.c (cgraph_analyze_function):  Fix call of estimate_num_insns.
Index: cgraphunit.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cgraphunit.c,v
retrieving revision 1.1.4.8
diff -c -3 -p -r1.1.4.8 cgraphunit.c
*** cgraphunit.c	6 Oct 2003 17:36:14 -0000	1.1.4.8
--- cgraphunit.c	18 Oct 2003 15:45:45 -0000
*************** cgraph_analyze_function (struct cgraph_n
*** 316,322 ****
    node->local.inlinable = tree_inlinable_function_p (decl);
    if (!DECL_ESTIMATED_INSNS (decl))
      DECL_ESTIMATED_INSNS (decl)
!       = (*lang_hooks.tree_inlining.estimate_num_insns) (decl);
    node->local.self_insns = DECL_ESTIMATED_INSNS (decl);
    if (node->local.inlinable)
      node->local.disregard_inline_limits
--- 316,322 ----
    node->local.inlinable = tree_inlinable_function_p (decl);
    if (!DECL_ESTIMATED_INSNS (decl))
      DECL_ESTIMATED_INSNS (decl)
!       = (*lang_hooks.tree_inlining.estimate_num_insns) (DECL_SAVED_TREE (decl));
    node->local.self_insns = DECL_ESTIMATED_INSNS (decl);
    if (node->local.inlinable)
      node->local.disregard_inline_limits


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]