This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
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