This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Kill set_block_for_new_insns
- To: gcc-patches at gcc dot gnu dot org, rth at cygnus dot com, patches at x86-64 dot org
- Subject: Kill set_block_for_new_insns
- From: Jan Hubicka <jh at suse dot cz>
- Date: Mon, 24 Sep 2001 13:44:37 +0200
Hi,
this patch kills set_block_for_new_insns as it is no longer
used nor usefull.
Bootstrapped/regtested i386
Honza
Sat Sep 22 17:03:17 CEST 2001 Jan Hubicka <jh@suse.cz>
* basic-block.h (set_block_for_new_insns): Delete.
* cfgrtl.c (set_block_for_new_insns): Delete.
*** /p2/cfg9/egcs/gcc/basic-block.h Thu Sep 20 19:58:39 2001
--- basic-block.h Sat Sep 22 14:53:15 2001
*************** extern void compute_bb_for_insn PARAMS
*** 291,297 ****
extern void free_bb_for_insn PARAMS ((void));
extern void update_bb_for_insn PARAMS ((basic_block));
extern void set_block_for_insn PARAMS ((rtx, basic_block));
- extern void set_block_for_new_insns PARAMS ((rtx, basic_block));
extern void free_basic_block_vars PARAMS ((int));
--- 291,296 ----
*** /p2/cfg9/egcs/gcc/cfgrtl.c Thu Sep 20 20:09:32 2001
--- cfgrtl.c Sat Sep 22 15:11:03 2001
*************** Software Foundation, 59 Temple Place - S
*** 29,35 ****
create_basic_block, flow_delete_block, split_block, merge_blocks_nomove
- Infrastructure to determine quickly basic block for instruction.
compute_bb_for_insn, update_bb_for_insn, set_block_for_insn,
- set_block_for_new_insns
- Edge redirection with updating and optimizing instruction chain
block_label, redirect_edge_and_branch,
redirect_edge_and_branch_force, tidy_fallthru_edge, force_nonfallthru
--- 29,34 ----
*************** set_block_for_insn (insn, bb)
*** 468,501 ****
}
VARRAY_BB (basic_block_for_insn, uid) = bb;
}
-
- /* When a new insn has been inserted into an existing block, it will
- sometimes emit more than a single insn. This routine will set the
- block number for the specified insn, and look backwards in the insn
- chain to see if there are any other uninitialized insns immediately
- previous to this one, and set the block number for them too. */
-
- void
- set_block_for_new_insns (insn, bb)
- rtx insn;
- basic_block bb;
- {
- set_block_for_insn (insn, bb);
-
- /* Scan the previous instructions setting the block number until we find
- an instruction that has the block number set, or we find a note
- of any kind. */
- for (insn = PREV_INSN (insn); insn != NULL_RTX; insn = PREV_INSN (insn))
- {
- if (GET_CODE (insn) == NOTE)
- break;
- if ((unsigned) INSN_UID (insn) >= basic_block_for_insn->num_elements
- || BLOCK_FOR_INSN (insn) == 0)
- set_block_for_insn (insn, bb);
- else
- break;
- }
- }
/* Split a block BB after insn INSN creating a new fallthru edge.
Return the new edge. Note that to keep other parts of the compiler happy,
--- 482,487 ----