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: Removing unnecessary ADDR_EXPRs


On Wed, 2005-05-18 at 13:34 -0700, Richard Henderson wrote:
> On Wed, May 18, 2005 at 10:53:11AM -0600, Jeffrey A Law wrote:
> > 	* tree-ssa-forwprop.c (forward_propagate_addr_expr): Do not
> > 	propagate an ADDR_EXPR if the definition and use sites are
> > 	in different EH regions.
> 
> This is a bit over-conservative.  I'm testing the following.
It's definitely conservative.


> 	* tree-ssa-forwprop.c (cfg_changed): New.
> 	(tidy_after_forward_propagate_addr): New.
> 	(forward_propagate_addr_expr): Use it, and fold_stmt_inplace.
> 	(forward_propagate_addr_into_variable_array_index): Likewise.
> 	(tree_ssa_forward_propagate_single_use_vars): Cleanup cfg if
> 	edges were removed.
No objections from me....

jeff




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