[PATCH] fix prefetch optimization in loop.c
Richard Henderson
rth@redhat.com
Mon Jan 21 16:23:00 GMT 2002
On Mon, Jan 21, 2002 at 11:11:14AM -0800, Janis Johnson wrote:
> This patch allows the mainline to bootstrap on i686-pc-linux-gnu with
> BOOT_CFLAGS="-O2 -fprefetch-loop-arrays -mcpu=pentium3". Without this
> patch, reload.c and reload1.c were being miscompiled when loops were
> considered and then rejected for prefetch optimization. This happened
> because of an assumption that rtx_copy was returning a copy of the
> address rtx when it was actually returning a pointer to the original
> rtx.
Um, the only cases in which a copy is not created is bare
registers and bare constants. Why would this cause a problem?
r~
More information about the Gcc-patches
mailing list