This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch 2/4] Add debug information if prefetches are not issued


These debug statements helped me to understand why a prefetch was not
issued. 

Bootstrapped and tested on s390x-ibm-linux-gnu. Ok to apply?

Christian.

2010-05-05  Christian Borntraeger  <borntraeger@de.ibm.com>

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

Index: b/gcc/tree-ssa-loop-prefetch.c
===================================================================
*** a/gcc/tree-ssa-loop-prefetch.c
--- b/gcc/tree-ssa-loop-prefetch.c
*************** should_issue_prefetch_p (struct mem_ref 
*** 848,859 ****
  {
    /* For now do not issue prefetches for only first few of the
       iterations.  */
!   if (ref->prefetch_before != PREFETCH_ALL)
      return false;
  
    /* Do not prefetch nontemporal stores.  */
!   if (ref->storent_p)
      return false;
  
    return true;
  }
--- 848,863 ----
  {
    /* For now do not issue prefetches for only first few of the
       iterations.  */
!   if (ref->prefetch_before != PREFETCH_ALL) {
!     fprintf (dump_file, "Ignoring %p due to prefetch_before\n", (void *) ref);
      return false;
+   }
  
    /* Do not prefetch nontemporal stores.  */
!   if (ref->storent_p) {
!     fprintf (dump_file, "Ignoring nontemporal store %p\n", (void *) ref);
      return false;
+   }
  
    return true;
  }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]