OSDN Git Service

2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
authorkrebbel <krebbel@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 11 May 2010 07:28:42 +0000 (07:28 +0000)
committerMasaki Muranaka <monaka@monami-software.com>
Sun, 23 May 2010 05:04:51 +0000 (14:04 +0900)
        * 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

gcc/ChangeLog
gcc/tree-ssa-loop-prefetch.c

index 40eef02..5b1d3dd 100644 (file)
@@ -1,3 +1,7 @@
+2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
+
+        * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
+
 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
 
        * gcc.c (execute): For -### don't quote arguments that
index 7497616..2fc901d 100644 (file)
@@ -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;
 }