diff options
author | Ghassan Shobaki <ghassan.shobaki@amd.com> | 2009-06-08 16:00:13 +0000 |
---|---|---|
committer | Dwarakanath Rajagopal <dwarak@gcc.gnu.org> | 2009-06-08 16:00:13 +0000 |
commit | db34470d17bd803cf74f747e7714f6029abd9b38 (patch) | |
tree | c5aeb746f699ff4f72e543b2dfe4227803de6a85 /gcc/params.h | |
parent | b01630bb3d498de236ebcfffdeb243431776f311 (diff) | |
download | gcc-db34470d17bd803cf74f747e7714f6029abd9b38.zip gcc-db34470d17bd803cf74f747e7714f6029abd9b38.tar.gz gcc-db34470d17bd803cf74f747e7714f6029abd9b38.tar.bz2 |
2009-06-08 Ghassan Shobaki <ghassan.shobaki@amd.com>
Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
* tree-ssa-loop-prefetch.c
(gather_memory_references): Introduced a counter for the number of
memory references.
(anything_to_prefetch_p): Introduced a counter for the number of
prefetches.
(is_loop_prefetching_profitable): New function with a cost model
for prefetching.
(loop_prefetch_arrays): Use the new cost model to determine if
prefetching is profitable.
* params.def (MIN_INSN_TO_PREFETCH_RATIO,
PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
* params.h (MIN_INSN_TO_PREFETCH_RATIO,
PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
* doc/invoke.texi (MIN_INSN_TO_PREFETCH_RATIO,
PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
Co-Authored-By: Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
From-SVN: r148277
Diffstat (limited to 'gcc/params.h')
-rw-r--r-- | gcc/params.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/params.h b/gcc/params.h index 828aa7d..a098fed 100644 --- a/gcc/params.h +++ b/gcc/params.h @@ -166,4 +166,8 @@ typedef enum compiler_param PARAM_VALUE (PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP) #define SLP_MAX_INSNS_IN_BB \ PARAM_VALUE (PARAM_SLP_MAX_INSNS_IN_BB) +#define MIN_INSN_TO_PREFETCH_RATIO \ + PARAM_VALUE (PARAM_MIN_INSN_TO_PREFETCH_RATIO) +#define PREFETCH_MIN_INSN_TO_MEM_RATIO \ + PARAM_VALUE (PARAM_PREFETCH_MIN_INSN_TO_MEM_RATIO) #endif /* ! GCC_PARAMS_H */ |