This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [4.5] Find more autoinc addressing for induction variables
- From: Steven Bosscher <stevenb dot gcc at gmail dot com>
- To: Bernd Schmidt <bernds_cb1 at t-online dot de>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 13 May 2009 23:27:30 +0200
- Subject: Re: [4.5] Find more autoinc addressing for induction variables
- References: <49998A2D.5000401@t-online.de> <4A0AED10.7070109@t-online.de>
On Wed, May 13, 2009 at 5:53 PM, Bernd Schmidt <bernds_cb1@t-online.de> wrote:
> I wrote:
>>
>> The current auto-inc-dec optimization only looks at single basic blocks,
>> and fails to create autoincrement addressing for induction variables in
>> nontrivial loops.
>>
>> This patch tries to address this. ?When we have a suitable memory
>> reference, we look for two definitions using DU/UD chains: an
>> initialization, and an increment, which must satisfy a number of
>> conditions (see comments in the patch).
>
> http://gcc.gnu.org/ml/gcc-patches/2009-02/msg00729.html
>
> Ping.
Perhaps I missed it, but did you address Paolo's comment
(http://gcc.gnu.org/ml/gcc-patches/2009-02/msg00736.html), for example
by looking at what this does to compilation times?
Ciao!
Steven