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]

Re: [patch 4/4 v4] Allow loop prefetch code to speculatively prefetch non constant steps


Hi Christian,

Bootstrapped and tested on s390x-ibm-linux-gnu.

I assume you have enabled the pass when running the testsuite?!


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

         * tree-ssa-loop-prefetch.c (mem_ref_group): Change step to tree.
         * tree-ssa-loop-prefetch.c (ar_data): Change step to tree.
         * tree-ssa-loop-prefetch.c (dump_mem_ref): Adopt debug code to
         handle a tree as step.  This also checks for a constant int vs.
         non-constant but loop-invariant steps.
         * tree-ssa-loop-prefetch.c (find_or_create_group): Change the sort
         algorithm to only consider steps that are constant ints.
         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Adopt code to handle
         a tree instead of a HOST_WIDE_INT for step.
         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Handle
         tree instead of int and be prepared to see a NULL_TREE.
         * tree-ssa-loop-prefetch.c (prune_ref_by_self_reuse): Do not prune
         prefetches if the step cannot be calculated at compile time.
         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Do not prune
         prefetches if the step cannot be calculated at compile time.
         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Issue prefetches
         for non-constant but loop-invariant steps.

No need to repeat the file for every function.


!&& (int_cst_value ((*groups)->step)< int_cst_value (step)))

Superfluous brackets.



You don't need to re-post. I can do these changes for you when checking the patch in.


Thanks!

Bye,

-Andreas-


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