This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


> 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?

-- 
Eric Botcazou


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]