public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/45022] No prefetch for the vectorized loop
[not found] <bug-45022-4@http.gcc.gnu.org/bugzilla/>
@ 2010-11-01 22:22 ` changpeng.fang at amd dot com
0 siblings, 0 replies; 6+ messages in thread
From: changpeng.fang at amd dot com @ 2010-11-01 22:22 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45022
Changpeng Fang <changpeng.fang at amd dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
--- Comment #6 from Changpeng Fang <changpeng.fang at amd dot com> 2010-11-01 22:21:56 UTC ---
Not surprise: Richard's check-in of the MISALIGNED_INDIRECT_REF removal
fixed the bug.
Surprise: only two prefetches are generated (which is right). However,
if we could align the references as the following case (PR 45021):
float a[1024], b[1024];
void foo(int beta)
{
int i;
for(i=0; i<1024; i++)
a[i] = a[i] + beta * b[i];
}
Three prefetches will be generated, one for b, one for load a, and one for
store a.
Anyway, I am closing this bug, and we should work on PR 45021.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/45022] No prefetch for the vectorized loop
2010-07-21 18:04 [Bug tree-optimization/45022] New: " changpeng dot fang at amd dot com
` (3 preceding siblings ...)
2010-07-29 19:14 ` changpeng dot fang at amd dot com
@ 2010-07-30 8:41 ` rguenther at suse dot de
4 siblings, 0 replies; 6+ messages in thread
From: rguenther at suse dot de @ 2010-07-30 8:41 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from rguenther at suse dot de 2010-07-30 08:41 -------
Subject: Re: No prefetch for the vectorized
loop
On Thu, 29 Jul 2010, changpeng dot fang at amd dot com wrote:
> ------- Comment #4 from changpeng dot fang at amd dot com 2010-07-29 19:14 -------
> (In reply to comment #1)
> > The misaligned indirect-refs will vanish soon.
> >
>
> I saw your patch that remove ALIGNED_INDIRECT_REF. Do you also plan to remove
> MISALIGNED_INDIRECT_REF? Thanks.
Yes.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45022
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/45022] No prefetch for the vectorized loop
2010-07-21 18:04 [Bug tree-optimization/45022] New: " changpeng dot fang at amd dot com
` (2 preceding siblings ...)
2010-07-22 21:17 ` rakdver at kam dot mff dot cuni dot cz
@ 2010-07-29 19:14 ` changpeng dot fang at amd dot com
2010-07-30 8:41 ` rguenther at suse dot de
4 siblings, 0 replies; 6+ messages in thread
From: changpeng dot fang at amd dot com @ 2010-07-29 19:14 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from changpeng dot fang at amd dot com 2010-07-29 19:14 -------
(In reply to comment #1)
> The misaligned indirect-refs will vanish soon.
>
I saw your patch that remove ALIGNED_INDIRECT_REF. Do you also plan to remove
MISALIGNED_INDIRECT_REF? Thanks.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45022
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/45022] No prefetch for the vectorized loop
2010-07-21 18:04 [Bug tree-optimization/45022] New: " changpeng dot fang at amd dot com
2010-07-21 18:06 ` [Bug tree-optimization/45022] " rguenth at gcc dot gnu dot org
2010-07-22 20:52 ` changpeng dot fang at amd dot com
@ 2010-07-22 21:17 ` rakdver at kam dot mff dot cuni dot cz
2010-07-29 19:14 ` changpeng dot fang at amd dot com
2010-07-30 8:41 ` rguenther at suse dot de
4 siblings, 0 replies; 6+ messages in thread
From: rakdver at kam dot mff dot cuni dot cz @ 2010-07-22 21:17 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from rakdver at kam dot mff dot cuni dot cz 2010-07-22 21:17 -------
Subject: Re: No prefetch for the vectorized
loop
> ------- Comment #2 from changpeng dot fang at amd dot com 2010-07-22 20:52 -------
> (In reply to comment #1)
> > The misaligned indirect-refs will vanish soon.
> >
>
> >From the prefetching point of view, is there any reason that we can not
> prefetch
> for mis-aligned or indirect refs? <I understand that prefetching for indirect
> refs may be too aggressive>
we do prefetching for indirect refs. As for mis-aligned refs, I was a bit
worried
that perhaps on some architectures, taking their address might not be valid;
but
it is likely that I am mistaken on this.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45022
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/45022] No prefetch for the vectorized loop
2010-07-21 18:04 [Bug tree-optimization/45022] New: " changpeng dot fang at amd dot com
2010-07-21 18:06 ` [Bug tree-optimization/45022] " rguenth at gcc dot gnu dot org
@ 2010-07-22 20:52 ` changpeng dot fang at amd dot com
2010-07-22 21:17 ` rakdver at kam dot mff dot cuni dot cz
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: changpeng dot fang at amd dot com @ 2010-07-22 20:52 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from changpeng dot fang at amd dot com 2010-07-22 20:52 -------
(In reply to comment #1)
> The misaligned indirect-refs will vanish soon.
>
>From the prefetching point of view, is there any reason that we can not
prefetch
for mis-aligned or indirect refs? <I understand that prefetching for indirect
refs may be too aggressive>
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45022
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/45022] No prefetch for the vectorized loop
2010-07-21 18:04 [Bug tree-optimization/45022] New: " changpeng dot fang at amd dot com
@ 2010-07-21 18:06 ` rguenth at gcc dot gnu dot org
2010-07-22 20:52 ` changpeng dot fang at amd dot com
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-07-21 18:06 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from rguenth at gcc dot gnu dot org 2010-07-21 18:06 -------
The misaligned indirect-refs will vanish soon.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rguenth at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45022
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2010-11-01 22:22 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-45022-4@http.gcc.gnu.org/bugzilla/>
2010-11-01 22:22 ` [Bug tree-optimization/45022] No prefetch for the vectorized loop changpeng.fang at amd dot com
2010-07-21 18:04 [Bug tree-optimization/45022] New: " changpeng dot fang at amd dot com
2010-07-21 18:06 ` [Bug tree-optimization/45022] " rguenth at gcc dot gnu dot org
2010-07-22 20:52 ` changpeng dot fang at amd dot com
2010-07-22 21:17 ` rakdver at kam dot mff dot cuni dot cz
2010-07-29 19:14 ` changpeng dot fang at amd dot com
2010-07-30 8:41 ` rguenther at suse dot de
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).