[PATCH] for PR16461

Jeffrey A Law law@redhat.com
Mon Jul 12 19:50:00 GMT 2004


On Mon, 2004-07-12 at 07:07, Zdenek Dvorak wrote:
> Hello,
> 
> > > as Diego noted, tree-tailcall.c:independent_of_stmt_p must handle
> > > non-SSA name arguments of phi nodes.
> > > 
> > > Bootstrapped & regtested on ia64.
> > > 
> > > Zdenek
> > > 
> > > 	PR tree-optimization/16461
> > > 	* tree-tailcall.c (independent_of_stmt_p): Handle non-SSA name
> > > 	arguments of phi nodes.
> > I'd suggest using
> > 
> > if (TREE_CODE (expr) != SSA_NAME)
> >   break;
> > 
> > Instead since only an SSA_NAME is valid for EXPR in that loop.  Why
> > check is_gimple_min_invariant when it's clear that the only valid
> > node is an SSA_NAME?
> 
> sure.  Ok with the change?
Yes, OK with that change.
jeff




More information about the Gcc-patches mailing list