OSDN Git Service

Reduce the cost in miss rate computation.
authorspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 2 Jul 2010 16:34:38 +0000 (16:34 +0000)
committerspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 2 Jul 2010 16:34:38 +0000 (16:34 +0000)
commit3a2f43cf063565a48d77f8ca57ce797642da497a
tree4fae2c020fec2caf58422c7e0546771c17e6f8ec
parent5a91155f3ea2d63559d86797775c9c04b2ef7c05
Reduce the cost in miss rate computation.

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

* tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
is_miss_rate_acceptable. Pull total_positions computation
out of the loops.  Early return if miss_positions exceeds
the acceptable threshold.
* tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
is_miss_rate_acceptable after renaming of compute_miss_rate.

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