This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Minor ivopts improvements
- From: Richard Henderson <rth at redhat dot com>
- To: Zdenek Dvorak <rakdver at atrey dot karlin dot mff dot cuni dot cz>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 22 Apr 2005 20:08:00 -0700
- Subject: Re: [patch] Minor ivopts improvements
- References: <20050422083839.GA30751@atrey.karlin.mff.cuni.cz>
On Fri, Apr 22, 2005 at 10:38:39AM +0200, Zdenek Dvorak wrote:
> * tree-ssa-loop-ivopts.c (struct cost_pair): Add value field.
> (find_interesting_uses_cond): Do not use integer_zerop and
> integer_nonzerop to check for integer constants.
> (set_use_iv_cost): Record the value field.
> (determine_use_iv_cost_generic, determine_use_iv_cost_address,
> determine_use_iv_cost_outer): Set the value field of the cost pair.
> (may_eliminate_iv): Do not return the comparison code.
> (iv_elimination_compare): New function.
> (determine_use_iv_cost_condition): Set the value field. Record
> noneliminable invariants correctly.
> (rewrite_use_compare, rewrite_use_outer): Use the value field.
Ok.
r~