[RFC] Don't schedule prefetch INSNs

Zdenek Dvorak rakdver@kam.mff.cuni.cz
Wed May 20 16:49:00 GMT 2009


Hi,

> >Do you mean this within the same basic block?  Prefetching something that 
> >will
> >be accessed in the same basic block is probably not very profitable (unless
> >the block is huge).
> 
> It will be worthwhile if the basic block is a loop body. It might make 
> sense to prefetch something used in the next loop iteration. Actually 
> that's what I am trying to do for memcpys.

in that case, the placement of the prefetch inside the loop body is
more or less irrelevant, no?

Zdenek



More information about the Gcc-patches mailing list