This is the mail archive of the
mailing list for the GCC project.
Re: [Patch PR44576]: Don't do further analysis if we could know prefetching is not benefitial
Am Freitag 09 Juli 2010, 19:06:55 schrieb Fang, Changpeng:
> Am Freitag 09 Juli 2010, 03:15:26 schrieb Fang, Changpeng:
> >> + /* FIXME: the time should be weighted by the probabilities of the blocks in
> >> + the loop body. */
> >> + time = tree_num_loop_insns (loop, &eni_time_weights);
> >> + ahead = (PREFETCH_LATENCY + time - 1) / time;
> >Here I sometimes get a division by zero.
> That should not happen (time couldn't be zero). Would you please double check and give a testcase to show the problem
> if possible?
dependence.c from gcc (spec version) fails in such a way.
Since you added a check I guess you dont need a testcase any more?