[PATCH] Add PAREN_EXPR

Richard Guenther rguenther@suse.de
Wed Feb 20 10:15:00 GMT 2008


On Wed, 20 Feb 2008, Paolo Bonzini wrote:

> 
> >  * tree.def (PAREN_EXPR): New tree code.
> >  * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
> >  and PAREN_EXPR.
> >  * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
> >  * expr.c (expand_expr_real_1): Likewise.
> >  * tree-inline.c (estimate_num_insns_1): Likewise.
> >  * tree-complex.c (expand_complex_move): Likewise.
> >  * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
> >  as plain x.
> 
> CCP should also see through PAREN_EXPRs.  VRP shouldn't; I'm not sure about
> copyprop.

The fold_unary hunk deals with the CCP case.  Copyprop should
definitely not look through PAREN_EXPRs.

Richard.



More information about the Fortran mailing list