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)
committerspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 7 May 2010 17:26:02 +0000 (17:26 +0000)
commite20bb1260c7364d3a71b1f8f7e6e5ac2c3fe23d8
tree5749b3a61855b4d88b29ee98bebe99c3111c7654
parent3fa57e8490fea744e154c99d247822c1a44dd475
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