[PR30643] restore memory cse

Steven Bosscher stevenb.gcc@gmail.com
Fri Mar 9 10:05:00 GMT 2007


(ref. http://gcc.gnu.org/ml/gcc-patches/2007-03/msg00525.html, sorry
for breaking the thread)

> 	Revert part of:
> 	2006-11-03  Paolo Bonzini  <bonzini@gnu.org>
> 		    Steven Bosscher  <steven@gcc.gnu.org>
> 	* cse.c (fold_rtx_mem, fold_rtx_mem_1, find_best_addr,
> 	canon_for_address, table_size): Restore.
> 	(new_basic_block, insert, remove_from_table): Restore references to
> 	table_size.
> 	(fold_rtx): Fold MEMs after processing them with
> 	equiv_constant.  Recurse.

I don't believe you have to restore _all_ of fold_rtx_mem, and
especially not of find_best_addr.  I think it would be time well spent
to figure out which parts you actually need, instead of just reverting
these bits.

Gr.
Steven



More information about the Gcc-patches mailing list