This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Changes in params for cache sizes
- From: Diego Novillo <dnovillo at google dot com>
- To: Zdenek Dvorak <rakdver at kam dot mff dot cuni dot cz>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 31 Jul 2007 08:10:49 -0400
- Subject: Re: [patch] Changes in params for cache sizes
- References: <20070523091352.GA31024@kam.mff.cuni.cz> <b798aad50705231324y6e72d02ob1185f17e0b39276@mail.gmail.com> <20070602080757.GA1887@kam.mff.cuni.cz>
On 6/2/07 4:07 AM, Zdenek Dvorak wrote:
> * doc/invoke.texi (l1-cache-size): Update documentation.
> (l2-cache-size): Document.
> * params.h (L2_CACHE_SIZE): New macro.
> * tree-ssa-loop-prefetch.c (L1_CACHE_SIZE_BYTES): Reflect
> that L1_CACHE_SIZE is in kB now.
> (L2_CACHE_SIZE_BYTES): New macro.
> (tree_ssa_prefetch_arrays): Show size in kb.
> * config/i386/i386.h (struct processor_costs): Add l1_cache_size
> and l2_cache_size fields.
> * config/i386/driver-i386.c (describe_cache): Detect cache size
> in kB.
> * config/i386/i386.c (size_cost, i386_cost, i486_cost,pentium_cost,
> pentiumpro_cost, geode_cost, k6_cost, athlon_cost, k8_cost,
> amdfam10_cost, pentium4_cost, nocona_cost, core2_cost,
> generic64_cost, generic32_cost): Add l1_cache_size and l2_cache_size.
> (override_options): Set l1-cache-size and l2-cache-size to default
> values if not specified otherwise.
> * params.def (PARAM_L1_CACHE_SIZE): Change to set in kB.
> (PARAM_L2_CACHE_SIZE): New.
OK.