This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fix PR tree-optimization/20940
- From: Diego Novillo <dnovillo at redhat dot com>
- To: Daniel Berlin <dberlin at dberlin dot org>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 16 Mar 2005 11:23:00 -0500
- Subject: Re: Fix PR tree-optimization/20940
- Organization: Red Hat Canada
- References: <1110989427.5912.30.camel@linux.site>
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.