This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa] [PATCH] fix PR 13066, fold being stupid
- From: law at redhat dot com
- To: Diego Novillo <dnovillo at redhat dot com>
- Cc: Andrew Pinski <pinskia at physics dot uc dot edu>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 29 Feb 2004 13:53:49 -0700
- Subject: Re: [tree-ssa] [PATCH] fix PR 13066, fold being stupid
- Reply-to: law at redhat dot com
In message <1078073217.20206.15.camel@localhost.localdomain>, Diego Novillo wri
tes:
>I agree that with the call to fold_convert we generate more GIMPLE code
>initially, but it looks more correct to me:
>
>int f()
>{
> bool iftmp.0;
> bool T.6;
> bool T.7;
> ...
> if (a.1 == 0)
> iftmp.0 = 1; <= Nit. pretty printer ought to render 'true';
> else
> iftmp.0 = 0;
> ...
> T.6 = (bool)iftmp.2;
> T.7 = iftmp.0 ^ T.6;
> if (T.7)
> ...
>}
And while we may create more code initially, the PHI linearization code
will help clean that little mess up :-)
jeff