This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fix PR tree-optimization/20940
On Wed, Mar 16, 2005 at 11:31:53AM -0500, Daniel Berlin wrote:
> > 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.
>
> Such as where?
>
In SRA and the builtin folder. We have to add code to rescan the
newly inserted statements, add the new symbols to the symbol
table and put them in SSA form. And if fold will not guarantee
GIMPLE output, then we potentially need to do this everywhere
fold_stmt is called.
Not impossible. Annoying.
Diego.