Re: move unreachable user labels to entry point

2021-08-17 Thread Alexandre Oliva
On Jul 13, 2021, Richard Biener wrote: > The right OMP region suggests something wrt correctness Yeah, as Jakub wrote, we have to choose a block that's in the same region the label belongs to. The proposed patch doesn't change that, it just uses the entry block instead of the previous block, if

Re: move unreachable user labels to entry point

2021-07-13 Thread Richard Biener via Gcc-patches
On Tue, Jul 13, 2021 at 10:52 AM Jakub Jelinek wrote: > > On Tue, Jul 13, 2021 at 09:56:41AM +0200, Richard Biener wrote: > > The comment above says > > > > /* During cfg pass make sure to put orphaned labels > > into the right OMP region. */ > > > > and the

Re: move unreachable user labels to entry point

2021-07-13 Thread Jakub Jelinek via Gcc-patches
On Tue, Jul 13, 2021 at 09:56:41AM +0200, Richard Biener wrote: > The comment above says > > /* During cfg pass make sure to put orphaned labels > into the right OMP region. */ > > and the full guard is > > if ((unsigned) bb->index < bb_to_om

Re: move unreachable user labels to entry point

2021-07-13 Thread Richard Biener via Gcc-patches
On Tue, Jul 13, 2021 at 5:11 AM Alexandre Oliva wrote: > > > pr42739.C, complicated by some extra wrappers and cleanups from a > feature I'm working on, got me very confused because a user label > ended up in a cleanup introduced by my pass, where it couldn't > possibly have been initially. > > Th

move unreachable user labels to entry point

2021-07-12 Thread Alexandre Oliva
pr42739.C, complicated by some extra wrappers and cleanups from a feature I'm working on, got me very confused because a user label ended up in a cleanup introduced by my pass, where it couldn't possibly have been initially. The current logic may move such an unreachable user label multiple time