diff options
author | Changpeng Fang <changpeng.fang@amd.com> | 2010-06-09 22:51:46 +0000 |
---|---|---|
committer | Sebastian Pop <spop@gcc.gnu.org> | 2010-06-09 22:51:46 +0000 |
commit | f7963a7ce745ff36fa2c2674e821f9476ba2f81b (patch) | |
tree | 5c3b24046efb9af6d8d46c223e86dcc6dc93af9b /gcc/tree-ssa-loop-prefetch.c | |
parent | 7472eb13e97a3e2887f5cebc2becbdad37e8c917 (diff) | |
download | gcc-f7963a7ce745ff36fa2c2674e821f9476ba2f81b.zip gcc-f7963a7ce745ff36fa2c2674e821f9476ba2f81b.tar.gz gcc-f7963a7ce745ff36fa2c2674e821f9476ba2f81b.tar.bz2 |
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
Diffstat (limited to 'gcc/tree-ssa-loop-prefetch.c')
-rw-r--r-- | gcc/tree-ssa-loop-prefetch.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/tree-ssa-loop-prefetch.c b/gcc/tree-ssa-loop-prefetch.c index 9ccf72e..705ee81 100644 --- a/gcc/tree-ssa-loop-prefetch.c +++ b/gcc/tree-ssa-loop-prefetch.c @@ -228,13 +228,13 @@ struct mem_ref_group /* Do not generate a prefetch if the unroll factor is significantly less than what is required by the prefetch. This is to avoid redundant - prefetches. For example, if prefetch_mod is 16 and unroll_factor is - 1, this means prefetching requires unrolling the loop 16 times, but - the loop is not going to be unrolled. In this case (ratio = 16), + prefetches. For example, when prefetch_mod is 16 and unroll_factor is + 2, prefetching requires unrolling the loop 16 times, but + the loop is actually unrolled twice. In this case (ratio = 8), prefetching is not likely to be beneficial. */ #ifndef PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO -#define PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO 8 +#define PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO 4 #endif /* The memory reference. */ |