------- Comment #7 from changpeng dot fang at amd dot com  2010-05-28 16:56 
-------
(In reply to comment #5)
> An alternative approach might be have different values for 
> prefetch-min-insn-to-mem-ratio and min-insn-to-prefetch-ratio
> depending on constant/non-constant step size.
> 
It may be a good idea for limit non-constant step prefetching to
big loops. This is because we are not very confident that the 
reference will cause cache miss, and we should limit the prefetches
generated. min-insn-to-prefetch-ratio may be a good parameter to
work on.

By the way, I am thinking that min-insn-to-prefetch-ratio should
be backend dependent. In certain sense, this parameter implies
how many "useless" prefetches can an architecture tolerate. 


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44297

Reply via email to