ivopts cost oddities

Ian Lance Taylor iant@google.com
Wed Nov 15 15:29:00 GMT 2006


Bernd Schmidt <bernds_cb1@t-online.de> writes:

> --- tree-ssa-loop-ivopts.c	(revision 118853)
> +++ tree-ssa-loop-ivopts.c	(working copy)
> @@ -3321,32 +3321,32 @@ multiply_by_cost (HOST_WIDE_INT cst, enu
>  /* Returns true if multiplying by RATIO is allowed in address.  */
>  
>  bool
> -multiplier_allowed_in_address_p (HOST_WIDE_INT ratio)
> +multiplier_allowed_in_address_p (HOST_WIDE_INT ratio, enum machine_mode mode)

I think this needs a comment about the meaning of MODE.  Is it the
mode of the memory to which the address points?  Or is it the mode of
the address computation?

Same in at least one other place.

Thanks.

Ian



More information about the Gcc-patches mailing list