Define the TRIP_COUNT_TO_AHEAD_RATIO heuristic.
authorChangpeng Fang <changpeng.fang@amd.com>
Fri, 7 May 2010 17:26:02 +0000 (17:26 +0000)
committerSebastian Pop <spop@gcc.gnu.org>
Fri, 7 May 2010 17:26:02 +0000 (17:26 +0000)
commit9bf4598b0df6d72a5b10dc3acf82034c42d0e220
tree5749b3a61855b4d88b29ee98bebe99c3111c7654
parentccacf0e1937278d8db2d0be7f6b45d2fce6afc69
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.

From-SVN: r159163
gcc/ChangeLog
gcc/tree-ssa-loop-prefetch.c