On Tue, Jul 19, 2016 at 12:25 PM, Bernd Schmidt <bschm...@redhat.com> wrote: > On 07/19/2016 12:22 PM, Marc Glisse wrote: >> >> On Tue, 19 Jul 2016, Bernd Schmidt wrote: >> >>> On 07/19/2016 12:09 PM, Richard Biener wrote: >>> >>>> I saw walks over stmts of a BB. IMHO that's a no-go. >>> >>> >>> Only to find the first or last nondebug one. Is that unacceptable? >> >> >> Does gsi_start_nondebug_after_labels_bb not fit? > > > It might, if one realizes that such a thing exists. Will try.
I think that start/end_recording_case_labels also merged adjacent labels via group_case_labels_stmt. Not sure why you need to stop recording case labels during the transform. Is this because you are building a new switch stmt? Richard. > Bernd >