This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [4.5] Doloop improvement patches, 5/7
- From: Zdenek Dvorak <rakdver at kam dot mff dot cuni dot cz>
- To: Bernd Schmidt <bernds_cb1 at t-online dot de>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 6 Mar 2009 01:04:41 +0100
- Subject: Re: [4.5] Doloop improvement patches, 5/7
- References: <49B053E9.30701@t-online.de>
Hi,
> simplify_using_assignment calls function simple_rhs_p to determine if it
> should use the assignment or not. The previous patch changed
> determine_max_iter not to use simplified values, so none of the users of
> simplify_using_initial_values care whether the expression they get back
> is complicated, they only care whether it can eventually be simplified
> to a constant. To be able to do this for as many expressions as
> possible, it is advantageous to keep scanning as long as we can.
>
> This patch improves this by allowing a few more types of expressions in
> simple_rhs_p.
> * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
OK,
Zdenek