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] fix prefetch optimization in loop.c


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~


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