OSDN Git Service

Account for loop unrolling in the insn-to-prefetch ratio heuristic.
authorspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 7 May 2010 16:15:52 +0000 (16:15 +0000)
committerspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 7 May 2010 16:15:52 +0000 (16:15 +0000)
commit3fa57e8490fea744e154c99d247822c1a44dd475
tree7421bcfd46f6420c186e05c988f9bdf591a97bf6
parent3665c1ba3f3c8290fde59822a52ce6e8324d4612
Account for loop unrolling in the insn-to-prefetch ratio heuristic.

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

* tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
Account for loop unrolling in the insn-to-prefetch ratio heuristic.
(loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
the unroll_factor.

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