[middle-end, patch 2/3] Update ipa-prop structures during all kinds of inlining

Jan Hubicka hubicka@ucw.cz
Wed Sep 10 16:51:00 GMT 2008


> This  patch  simplifies the  inlining  code  a  little bit  by  making
> cgraph_mark_inline_edge invoke  indirect inlining updates  rather than
> mandating the caller does that immediately afterwards.
> 
> This is  not only a cleanup  but actually ensures  that the structures
> are updated in  all cases, whereas I am not really  that sure they are
> as it is now.
> 
> 
> 2008-09-10  Martin Jambor  <mjambor@suse.cz>
> 
> 	* ipa-inline.c (cgraph_mark_inline_edge): New parameter new_edges,
> 	changed all callers.  Call ipa_propagate_indirect_call_infos if doing
> 	indirect inlining.  Made static.
>         (cgraph_decide_inlining): Freeing ipa-prop structures after inlining
> 	functions called only once.
> 	(cgraph_decide_recursive_inlining): Don't call
> 	ipa_propagate_indirect_call_infos, pass new_edges to
> 	cgraph_mark_inline_edge instead.
> 	(cgraph_decide_inlining_of_small_functions): Don't call
> 	ipa_propagate_indirect_call_infos, pass new_edges to
> 	cgraph_mark_inline_edge instead.
> 	(cgraph_decide_inlining): Don't call
> 	ipa_propagate_indirect_call_infos.
> 	* ipa-prop.c: Check that vectors are allocated.

OK
Honza



More information about the Gcc-patches mailing list