[PATCH] Update BBs in cleanup_barriers pass (PR rtl-optimization/61058)

Jakub Jelinek jakub@redhat.com
Mon Jan 26 09:56:00 GMT 2015


On Mon, Jan 26, 2015 at 10:06:05AM +0100, Eric Botcazou wrote:
> > While the cleanup_barriers runs after cleaning up BLOCK_FOR_INSNs,
> > some targets like i?86/x86_64 choose to populate it again during machine
> > reorg and some target don't free it at the end of machine reorg.
> > This patch updates cleanup_barrier pass, so that it adjusts basic block
> > boundaries and BLOCK_FOR_INSNs in that case, so that we don't crash during
> > final pass.
> 
> This isn't a recent regression so what about fixing it more "properly"?  For 
> example, by calling free_bb_for_insn at the end of the machinre reorg passes 
> which called compute_bb_for_insn at the beginning?  Or do the affected ports 
> need the BB info all the way down to final?

Yes, they do, that is why it crashed during final.

	Jakub



More information about the Gcc-patches mailing list