This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, rs6000] Tidy up dumping of register/memory move cost
- From: David Edelsohn <dje dot gcc at gmail dot com>
- To: Pat Haugen <pthaugen at linux dot vnet dot ibm dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 31 May 2011 15:18:49 -0400
- Subject: Re: [PATCH, rs6000] Tidy up dumping of register/memory move cost
- References: <4DDD523F.1030108@linux.vnet.ibm.com>
On Wed, May 25, 2011 at 3:02 PM, Pat Haugen <pthaugen@linux.vnet.ibm.com> wrote:
> The following fixes a problem when dumping register costs, where the
> incorrect 'from' value was being written out because the code modified the
> incoming parameter value. It also changes things so that register/memory
> costs are only dumped on the outermost call, eliminating intermediate output
> when a cost calculation requires going through memory or GPRs.
>
> Bootstrap/regtest on powerpc64-linux with no new regressions. Ok for trunk?
>
> -Pat
>
>
> 2011-05-25 ?Pat Haugen <pthaugen@us.ibm.com>
>
> ? ? ? ?* config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
> ? ? ? ?parameter value for dump. Dump cost on outermost call only.
> ? ? ? ?(rs6000_memory_move_cost): Dump cost on outermost call only.
Okay.
Thanks, David