This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: cfg merge part 10 - BB duplication framework
- From: Richard Henderson <rth at redhat dot com>
- To: Jan Hubicka <jh at suse dot cz>
- Cc: gcc-patches at gcc dot gnu dot org, gcc-pdo at atrey dot karlin dot mff dot cuni dot cz
- Date: Mon, 6 May 2002 15:07:38 -0700
- Subject: Re: cfg merge part 10 - BB duplication framework
- References: <20020306183052.GC8372@atrey.karlin.mff.cuni.cz>
On Wed, Mar 06, 2002 at 07:30:52PM +0100, Jan Hubicka wrote:
> * cfglayout.c (fixup_reorder_chain): Dump duplicated
> (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
> cfg_layout_duplicate_bb): New global function.
> (duplicate_insn_chain): New static function.
> * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
> cfg_layout_duplicate_bb): Declare.
> (struct reorder_block_def): Add "original" field.
> * emit-rtl.c (emit_copy_of_insn_after): New function.
> * rtl.h (emit_copy_of_insn_after): Declare.
Ok except,
> + int old_index = dest->index;
> +
> + /* Avoid redirect_edge_and_branch from overactive optimizing. */
> + dest->index = n_basic_blocks + 1;
What in the world is this?
r~