Commit f7963a7c by Changpeng Fang Committed by Sebastian Pop

Adjust the threshold value of PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO

2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>

	* tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
	Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
	8 to 4.  Minor change of the related comments.

From-SVN: r160514
parent 7472eb13
2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
* tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
8 to 4. Minor change of the related comments.
2010-06-09 Sebastian Pop <sebastian.pop@amd.com> 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
* tree-scalar-evolution.c (instantiate_scev_name): Do not fail * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
......
...@@ -228,13 +228,13 @@ struct mem_ref_group ...@@ -228,13 +228,13 @@ struct mem_ref_group
/* Do not generate a prefetch if the unroll factor is significantly less /* Do not generate a prefetch if the unroll factor is significantly less
than what is required by the prefetch. This is to avoid redundant than what is required by the prefetch. This is to avoid redundant
prefetches. For example, if prefetch_mod is 16 and unroll_factor is prefetches. For example, when prefetch_mod is 16 and unroll_factor is
1, this means prefetching requires unrolling the loop 16 times, but 2, prefetching requires unrolling the loop 16 times, but
the loop is not going to be unrolled. In this case (ratio = 16), the loop is actually unrolled twice. In this case (ratio = 8),
prefetching is not likely to be beneficial. */ prefetching is not likely to be beneficial. */
#ifndef PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO #ifndef PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO
#define PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO 8 #define PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO 4
#endif #endif
/* The memory reference. */ /* The memory reference. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment