[Patch PR44576]: Don't do further analysis if we could know prefetching is not benefitial
Fang, Changpeng
Changpeng.Fang@amd.com
Fri Jul 9 17:09:00 GMT 2010
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?
Thanks,
Changpeng
More information about the Gcc-patches
mailing list