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
This commit is contained in:
parent
b4501dfdd2
commit
2732d76752
2 changed files with 12 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
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>
|
||||
|
||||
PR c/31520
|
||||
|
|
|
@ -947,6 +947,13 @@ loop_prefetch_arrays (struct loop *loop)
|
|||
struct tree_niter_desc desc;
|
||||
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. */
|
||||
refs = gather_memory_references (loop);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue