Commit a74ff877 by Jan Hubicka Committed by Jan Hubicka

emit-rtl.c (change_address_1): Do not re-generate the RTX if nothing change.


	* emit-rtl.c (change_address_1):  Do not re-generate the RTX if nothing
	change.

From-SVN: r76457
parent 8b07361e
2004-01-23 Jan Hubicka <jh@suse.cz> 2004-01-23 Jan Hubicka <jh@suse.cz>
* emit-rtl.c (change_address_1): Do not re-generate the RTX if nothing
change.
* alloc-pool.c (align_four): Kill. * alloc-pool.c (align_four): Kill.
(create_alloc_pool): Align size to eight. (create_alloc_pool): Align size to eight.
(free_alloc_pool, free_pool): Invalidate deallocated data. (free_alloc_pool, free_pool): Invalidate deallocated data.
......
...@@ -1840,6 +1840,9 @@ change_address_1 (rtx memref, enum machine_mode mode, rtx addr, int validate) ...@@ -1840,6 +1840,9 @@ change_address_1 (rtx memref, enum machine_mode mode, rtx addr, int validate)
mode = GET_MODE (memref); mode = GET_MODE (memref);
if (addr == 0) if (addr == 0)
addr = XEXP (memref, 0); addr = XEXP (memref, 0);
if (mode == GET_MODE (memref) && addr == XEXP (memref, 0)
&& (!validate || memory_address_p (mode, addr)))
return memref;
if (validate) if (validate)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment