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] Improve prefetch emitting


On Sat, 11 Nov 2006, Zdenek Dvorak wrote:
>
> 	* tree-ssa-loop-prefetch.c (schedule_prefetches): Cleanup and improve
> 	comments.
> 	(issue_prefetch_ref): Move assignment to write_p out of loop.
> 	(determine_unroll_factor): Do not take PARAM_MAX_UNROLL_TIMES and
> 	SIMULTANEOUS_PREFETCHES into account.
> 	(loop_prefetch_arrays): Do not pass ahead to determine_unroll_factor.
> 	* lambda-code.c (lcm): Export.
> 	* tree-flow.h (lcm): Declare.
>
> 	* gcc.dg/tree-ssa/prefetch-3.c: New test.

This is OK for mainline.

At the risk of repeating myself, do you have any performance figures
for these changes?

Now that "lcm" is a public function, it might make sense to rename
it to "lowest_common_multiple" to avoid potential conflicts, or being
mistaken for "lazy code motion", or something similar.

Thanks in advance,

Roger
--


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