tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
authorChristian Borntraeger <borntraeger@de.ibm.com>
Tue, 11 May 2010 07:28:42 +0000 (07:28 +0000)
committerAndreas Krebbel <krebbel@gcc.gnu.org>
Tue, 11 May 2010 07:28:42 +0000 (07:28 +0000)
2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>

        * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.

From-SVN: r159256

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

index 40eef0289baebf980a9d37bb0521c0ad8c56f2ae..5b1d3dda3f9d3c10db18e02cfa2925d2df5e2333 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 74976167f4a62491e7459283c45af93a37ec0822..2fc901d907b1603dfce1983b3095c4c6e9611ea3 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;
 }