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: [tree-ssa] [PATCH] fix PR 13066, fold being stupid


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


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