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: Fix PR tree-optimization/20940


On Wed, Mar 16, 2005 at 11:10:27AM -0500, Daniel Berlin wrote:
> This is a case where fold now returns non-GIMPLE, and we put it in the
> RHS anyway.
> Roger Sayle wants fold to be able to return anything it likes, and have
> the optimizers deal with the results.
> 
Oh?  This could be a problem.  I thought that fold was going to
evolve into 2 separate modes, one for front end use and another
for middle-end use.

It is certainly annoying to have to deal with non-GIMPLE code
coming out of fold.  We currently do that when folding some
builtins, but if we allow fold to return whatever expression it
feels like, there will be trouble down the road.


Diego.


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