diff options
author | dwarak <dwarak@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-06-08 16:00:13 +0000 |
---|---|---|
committer | dwarak <dwarak@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-06-08 16:00:13 +0000 |
commit | 0ab353e15877092e385be933c988a5eb571c70e3 (patch) | |
tree | c5aeb746f699ff4f72e543b2dfe4227803de6a85 /gcc/params.def | |
parent | d37c6500cd9442e7c953f68a7db737026a7acc8a (diff) | |
download | gcc-0ab353e15877092e385be933c988a5eb571c70e3.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148277 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/params.def')
-rw-r--r-- | gcc/params.def | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/params.def b/gcc/params.def index 370d0948da9..e3a6470120a 100644 --- a/gcc/params.def +++ b/gcc/params.def @@ -741,6 +741,17 @@ DEFPARAM (PARAM_SLP_MAX_INSNS_IN_BB, "Maximum number of instructions in basic block to be considered for SLP vectorization", 1000, 0, 0) +DEFPARAM (PARAM_MIN_INSN_TO_PREFETCH_RATIO, + "min-insn-to-prefetch-ratio", + "min. ratio of insns to prefetches to enable prefetching for " + "a loop with an unknown trip count", + 10, 0, 0) + +DEFPARAM (PARAM_PREFETCH_MIN_INSN_TO_MEM_RATIO, + "prefetch-min-insn-to-mem-ratio", + "min. ratio of insns to mem ops to enable prefetching in a loop", + 3, 0, 0) + /* Local variables: mode:c |