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: [tree-ssa] flowgraph linearization [patch]


On Tue, 2003-04-01 at 01:00, Richard Henderson wrote:
> On Mon, Mar 31, 2003 at 08:14:13PM -0500, Diego Novillo wrote:
> > +  /* Linearize 'if (1)'.  */
> > +  if (simple_cst_equal (pred, integer_one_node) == 1
> > +	   && body_is_empty (else_clause))
> 
> You should recall that "if (2)" is also true.
> 
No need.  The parser canonicalizes 'if (constant)' to 'if (1)' or 'if
(0)'.

The folder always emits integer_one_node or integer_zero_node when
folding COND_EXPRs.


Diego.


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