diff options
author | Jeffrey A Law <law@cygnus.com> | 1999-11-15 08:12:29 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1999-11-15 01:12:29 -0700 |
commit | 6b8cf0c57c029951422b2d1beefe8548e9d98618 (patch) | |
tree | fcd1ce3b1eaf01522a488fd1131c6709f6c06b82 /gcc/basic-block.h | |
parent | 38e90e6c3bf7ff3c4a80f95a8c405fc2a69745a7 (diff) | |
download | gcc-6b8cf0c57c029951422b2d1beefe8548e9d98618.zip gcc-6b8cf0c57c029951422b2d1beefe8548e9d98618.tar.gz gcc-6b8cf0c57c029951422b2d1beefe8548e9d98618.tar.bz2 |
basic-block.h: Remove all #defines and prototypes related to integer lists.
* basic-block.h: Remove all #defines and prototypes related to
integer lists.
(free_bb_mem, compute_preds_succs): Remove prototype.
* rtl.h (free_bb_mem): Remove prototype.
* flow.c (alloc_int_list_node); Remove function.
(add_inst_list_node, free_int_list, add_pred_succ): Likewise.
(compute_preds_succs, free_bb_mem): Likewise.
* gcse.c (gcse_main): Do not call free_bb_mem anymore.
* toplev.c (rest_of_compilation): Likewise.
* haifa-sched.c (build_control_flow): Use flow generated edge
list to build the haifa specific edge list.
(find_rgns): Use new CFG data structures instead of pred/succ lists.
(schedule_insns): Do not build pred/succ lists anymore. Instead
build the edge table.
From-SVN: r30531
Diffstat (limited to 'gcc/basic-block.h')
-rw-r--r-- | gcc/basic-block.h | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/gcc/basic-block.h b/gcc/basic-block.h index c511bc6..40cc602 100644 --- a/gcc/basic-block.h +++ b/gcc/basic-block.h @@ -184,46 +184,6 @@ extern regset regs_live_at_setjmp; #define REG_BLOCK_GLOBAL -2 #define REG_BASIC_BLOCK(N) (VARRAY_REG (reg_n_info, N)->basic_block) - -/* List of integers. - These are used for storing things like predecessors, etc. - - This scheme isn't very space efficient, especially on 64 bit machines. - The interface is designed so that the implementation can be replaced with - something more efficient if desirable. */ - -typedef struct int_list { - struct int_list *next; - int val; -} int_list; - -typedef int_list *int_list_ptr; - -/* Integer list elements are allocated in blocks to reduce the frequency - of calls to malloc and to reduce the associated space overhead. */ - -typedef struct int_list_block { - struct int_list_block *next; - int nodes_left; -#define INT_LIST_NODES_IN_BLK 500 - struct int_list nodes[INT_LIST_NODES_IN_BLK]; -} int_list_block; - -/* Given a pointer to the list, return pointer to first element. */ -#define INT_LIST_FIRST(il) (il) - -/* Given a pointer to a list element, return pointer to next element. */ -#define INT_LIST_NEXT(p) ((p)->next) - -/* Return non-zero if P points to the end of the list. */ -#define INT_LIST_END(p) ((p) == NULL) - -/* Return element pointed to by P. */ -#define INT_LIST_VAL(p) ((p)->val) - -#define INT_LIST_SET_VAL(p, new_val) ((p)->val = (new_val)) - -extern void free_int_list PROTO ((int_list_block **)); /* Stuff for recording basic block info. */ @@ -247,7 +207,6 @@ extern void compute_bb_for_insn PROTO ((int)); extern void set_block_for_insn PROTO ((rtx, basic_block)); extern void set_block_num PROTO ((rtx, int)); -extern void free_bb_mem PROTO ((void)); extern void free_basic_block_vars PROTO ((int)); extern basic_block split_edge PROTO ((edge)); @@ -290,8 +249,6 @@ void verify_edge_list PROTO ((FILE *, struct edge_list *)); int find_edge_index PROTO ((struct edge_list *, basic_block, basic_block)); -extern void compute_preds_succs PROTO ((int_list_ptr *, int_list_ptr *, - int *, int *)); extern void compute_flow_dominators PROTO ((sbitmap *, sbitmap *)); extern void compute_immediate_dominators PROTO ((int *, sbitmap *)); |