Re: [PATCH 3/3] gimple: Simplify gimple_seq_nondebug_singleton_p

2024-09-23 Thread Richard Biener
On Mon, Sep 23, 2024 at 5:48 AM Andrew Pinski wrote: > > The implementation of gimple_seq_nondebug_singleton_p > was convoluted on how to determine if the sequence > was a singleton (which could contain debug statements). > > This simplifies the function into two calls. One to get the start > afte

[PATCH 3/3] gimple: Simplify gimple_seq_nondebug_singleton_p

2024-09-22 Thread Andrew Pinski
The implementation of gimple_seq_nondebug_singleton_p was convoluted on how to determine if the sequence was a singleton (which could contain debug statements). This simplifies the function into two calls. One to get the start after all of the debug statements and then check to see if it is at the