From a8beb3a7be09b268826e992fdddde3dc468c6939 Mon Sep 17 00:00:00 2001 From: Christian Borntraeger Date: Tue, 11 May 2010 07:28:42 +0000 Subject: [PATCH] tree-ssa-loop-prefetch.c: Add debug for dropped prefetches. 2010-05-11 Christian Borntraeger * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches. From-SVN: r159256 --- gcc/ChangeLog | 4 ++++ gcc/tree-ssa-loop-prefetch.c | 13 +++++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 40eef0289ba..5b1d3dda3f9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2010-05-11 Christian Borntraeger + + * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches. + 2010-05-11 Jakub Jelinek * gcc.c (execute): For -### don't quote arguments that 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; } -- 2.30.2