Re: Collapsing control-flow that leads to undefined behavior

2009-10-07 Thread Richard Guenther
On Wed, Oct 7, 2009 at 8:53 AM, Charles J. Tabony wrote: > Fellow GCC developers, > > Does GCC make any effort to collapse control-flow that is guaranteed to > have undefined behavior?  Such an optimization would improve performance > of Proc_2 from Dhrystone: > > > typedef int     One_Fifty; >  t

Collapsing control-flow that leads to undefined behavior

2009-10-06 Thread Charles J. Tabony
Fellow GCC developers, Does GCC make any effort to collapse control-flow that is guaranteed to have undefined behavior? Such an optimization would improve performance of Proc_2 from Dhrystone: typedef int One_Fifty; typedef enum{Ident_1, Ident_2, Ident_3, Ident_4, Ident_5}