]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/tree-ssa-loop-prefetch.c
Reduce the cost in miss rate computation.
authorChangpeng Fang <changpeng.fang@amd.com>
Fri, 2 Jul 2010 16:34:38 +0000 (16:34 +0000)
committerSebastian Pop <spop@gcc.gnu.org>
Fri, 2 Jul 2010 16:34:38 +0000 (16:34 +0000)
commit14e444c392d7ab69d0dcd299df8abbac067d07dc
tree4fae2c020fec2caf58422c7e0546771c17e6f8ec
parenta245c04bccad9eea35cf21def68ae812fd29a953
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.

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