public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* optimization/9531: Problem with -fprefetch-loop-arrays -funroll-loops
@ 2003-02-01 0:26 Anthony Green
0 siblings, 0 replies; only message in thread
From: Anthony Green @ 2003-02-01 0:26 UTC (permalink / raw)
To: gcc-gnats
>Number: 9531
>Category: optimization
>Synopsis: Problem with -fprefetch-loop-arrays -funroll-loops
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: pessimizes-code
>Submitter-Id: net
>Arrival-Date: Sat Feb 01 00:26:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Anthony Green
>Release: 3.3 20021212 (experimental)
>Organization:
>Environment:
System: Linux escape 2.4.18-18.8.0 #1 Thu Nov 14 00:10:29 EST 2002 i686 i686 i386 GNU/Linux
Architecture: i686
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: /home/green/FSF/GCC/HEAD/gcc/configure --prefix=/home/green/latest/i --enable-languages=c,c++,java : (reconfigured)
>Description:
Using -fprefetch-loop-arrays with -funroll-loops results in
redundant prefetch instructions.
>How-To-Repeat:
Compile the following for mips4 with -fprefetch-loop-arrays
-funroll-loops and look for the prefetch instructions in the asm
output.
void
foo (int **outptr, int **inptr)
{
int col;
for (col = 1024*3; col > 0; col--) {
outptr[2] = *inptr++;
outptr[1] = *inptr++;
outptr[0] = *inptr++;
outptr += 3;
}
}
I see the following sequence of instructions in the output:
pref 7,0($4)
pref 7,0($4)
pref 7,0($4)
pref 6,0($5)
pref 6,0($5)
pref 6,0($5)
pref 6,0($5)
pref 6,0($5)
pref 6,0($5)
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-02-01 0:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-01 0:26 optimization/9531: Problem with -fprefetch-loop-arrays -funroll-loops Anthony Green
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).