This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Improve cost computations in IVOPTS


> There seem to be unrelated changes in the patch, like
>
> -  if (TYPE_PRECISION (utype) != TYPE_PRECISION (ctype))
> +  if (TYPE_PRECISION (utype) < TYPE_PRECISION (ctype))

That's actually a no-op, just before there is:

  if (TYPE_PRECISION (utype) > TYPE_PRECISION (ctype))
    {
      /* We do not have a precision to express the values of use.  */
      return false;
    }

> and
>
> +  STRIP_NOPS (cbase);
> +  ctype = TREE_TYPE (cbase);
>
> are you sure you want to strip sign-changes here?  I am not.
> I would use STRIP_USELESS_TYPE_CONVERSIONS here.

STRIP_NOPS is used throughout the file to compute costs.  And I need this 
additional stripping to expose the "real" ctype.

-- 
Eric Botcazou


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]