Commit 2732d767 by Zdenek Dvorak Committed by Zdenek Dvorak

tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Ignore cold loops.

	* tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Ignore
	cold loops.

From-SVN: r123843
parent b4501dfd
2007-04-11 Zdenek Dvorak <dvorakz@suse.cz>
* tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Ignore
cold loops.
2007-04-14 Andrew Pinski <andrew_pinski@playstation.sony.com> 2007-04-14 Andrew Pinski <andrew_pinski@playstation.sony.com>
PR c/31520 PR c/31520
......
...@@ -947,6 +947,13 @@ loop_prefetch_arrays (struct loop *loop) ...@@ -947,6 +947,13 @@ loop_prefetch_arrays (struct loop *loop)
struct tree_niter_desc desc; struct tree_niter_desc desc;
bool unrolled = false; bool unrolled = false;
if (!maybe_hot_bb_p (loop->header))
{
if (dump_file && (dump_flags & TDF_DETAILS))
fprintf (dump_file, " ignored (cold area)\n");
return false;
}
/* Step 1: gather the memory references. */ /* Step 1: gather the memory references. */
refs = gather_memory_references (loop); refs = gather_memory_references (loop);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment