summaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-loop-prefetch.c
diff options
context:
space:
mode:
authorkrebbel <krebbel@138bc75d-0d04-0410-961f-82ee72b054a4>2010-05-11 07:28:42 +0000
committerkrebbel <krebbel@138bc75d-0d04-0410-961f-82ee72b054a4>2010-05-11 07:28:42 +0000
commit5d68c00f1c9af084246849a78843cb36b7c695da (patch)
tree9124ddc908bc5cb63f201a55da1f5db328faadc9 /gcc/tree-ssa-loop-prefetch.c
parent663e8646ddb5e2b10d828fd3c6bdfccbf928ac55 (diff)
downloadgcc-5d68c00f1c9af084246849a78843cb36b7c695da.tar.gz
2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
* tree-ssa-loop-prefetch.c: Add debug for dropped prefetches. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159256 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-loop-prefetch.c')
-rw-r--r--gcc/tree-ssa-loop-prefetch.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/gcc/tree-ssa-loop-prefetch.c b/gcc/tree-ssa-loop-prefetch.c
index 74976167f4a..2fc901d907b 100644
--- a/gcc/tree-ssa-loop-prefetch.c
+++ b/gcc/tree-ssa-loop-prefetch.c
@@ -860,11 +860,20 @@ should_issue_prefetch_p (struct mem_ref *ref)
/* For now do not issue prefetches for only first few of the
iterations. */
if (ref->prefetch_before != PREFETCH_ALL)
- return false;
+ {
+ if (dump_file && (dump_flags & TDF_DETAILS))
+ fprintf (dump_file, "Ignoring %p due to prefetch_before\n",
+ (void *) ref);
+ return false;
+ }
/* Do not prefetch nontemporal stores. */
if (ref->storent_p)
- return false;
+ {
+ if (dump_file && (dump_flags & TDF_DETAILS))
+ fprintf (dump_file, "Ignoring nontemporal store %p\n", (void *) ref);
+ return false;
+ }
return true;
}