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]

Re: [PATCH 1/6] Clarify edge redirection for inline clones


> 
> 2010-02-12  Martin Jambor  <mjambor@suse.cz>
> 
> 	* cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
> 	* cgraphunit.c (cgraph_materialize_all_clones): Moved call
> 	redirection...
> 	(cgraph_redirect_edge_call_stmt_to_callee): ...to this new
> 	function.
> 	(verify_cgraph_node): Do not check for edges pointing to wrong
> 	nodes in inline clones.
> 	* tree-inline.c (copy_bb): Call
> 	cgraph_redirect_edge_call_stmt_to_callee.

As we discussed earlier, it would make most sense to redirect calls just before inlining
visits them, but this should work on mainline well.  So the patch is OK for pretty-ipa and
if you can find a testcase producing ICE at mainline, then for mainlie too.

Honza


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