OSDN Git Service

Define the TRIP_COUNT_TO_AHEAD_RATIO heuristic.
authorspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 7 May 2010 17:26:02 +0000 (17:26 +0000)
committerMasaki Muranaka <monaka@monami-software.com>
Sun, 23 May 2010 05:02:52 +0000 (14:02 +0900)
commit4e04f5baad8e809645ad37918c964919b6d41900
tree231c75d1452c791c2a0abdf75b248c18784e1158
parenta995daf5e646e9b465f1d06686a8006d5696e5ed
Define the TRIP_COUNT_TO_AHEAD_RATIO heuristic.

2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>

* tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
(is_loop_prefetching_profitable): Do not insert prefetches
when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
times the prefetch ahead distance.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159163 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/tree-ssa-loop-prefetch.c