This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patches] Re: basics of flow based jump pass
On Thu, Jun 28, 2001 at 10:13:38AM +0200, Jan Hubicka wrote:
> > On Thu, Jun 28, 2001 at 12:18:32AM +0200, Jan Hubicka wrote:
> > > + /* Fixup barriers. */
> > > + barrier = next_nonnote_insn (insn);
> > > + if (fallthru && GET_CODE (barrier) == BARRIER)
> > > + flow_delete_insn (barrier), barrier = insn;
> > > + else if (!fallthru && GET_CODE (barrier) != BARRIER)
> > > + barrier = emit_barrier_after (insn);
> >
> > No need to set barrier at the end of this sequence.
> I think I need to do so.
> Imagine that I want to redirect fallthru edge of the conditional jump
> to it's destination. I need barrier after the new unconditional jump.
> (well, one of effects of killing jump would be to kill barriers)
No, I meant the assignment to the variable 'barrier'.
r~