On Tue, 2007-04-24 at 17:57 -0400, Aldy Hernandez wrote: > +static inline bool > +gsi_one_before_end_p (gimple_stmt_iterator i) > +{ > + return *i.ptr != NULL && GS_NEXT (*i.ptr) == NULL; > +} > + Since you have an end of list pointer, you could simply do one comparison: return i.ptr == &GS_SEQ_LAST (i.seq); Andrew