diff options
author | steven <steven@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-01-03 13:13:03 +0000 |
---|---|---|
committer | steven <steven@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-01-03 13:13:03 +0000 |
commit | 90bd219d592763880997f95fe5f2243d4b7b3570 (patch) | |
tree | 637750849d7de92afc2bfea49d5fe684aeb3e776 /gcc/sched-int.h | |
parent | 951311d4f27cabdda81edf28000d4b4d33588703 (diff) | |
download | gcc-90bd219d592763880997f95fe5f2243d4b7b3570.tar.gz |
* postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
with BLOCK_FOR_INSN.
* auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
* ifcvt.c (noce_get_alt_condition, noce_try_abs,
noce_process_if_block): Likewise.
* gcse.c (compute_local_properties, insert_expr_in_table,
insert_set_in_table, canon_list_insert, find_avail_set,
pre_insert_copy_insn): Likewise.
* basic-block.h (BLOCK_NUM): Move from here...
* sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@155586 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/sched-int.h')
-rw-r--r-- | gcc/sched-int.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/sched-int.h b/gcc/sched-int.h index 0d3a855690e..c3b463e76a1 100644 --- a/gcc/sched-int.h +++ b/gcc/sched-int.h @@ -1296,6 +1296,11 @@ extern int *rgn_bb_table; extern int *block_to_bb; extern int *containing_rgn; +/* Often used short-hand in the scheduler. The rest of the compiler uses + BLOCK_FOR_INSN(INSN) and an indirect reference to get the basic block + number ("index"). For historical reasons, the scheduler does not. */ +#define BLOCK_NUM(INSN) (BLOCK_FOR_INSN (INSN)->index + 0) + #define RGN_NR_BLOCKS(rgn) (rgn_table[rgn].rgn_nr_blocks) #define RGN_BLOCKS(rgn) (rgn_table[rgn].rgn_blocks) #define RGN_DONT_CALC_DEPS(rgn) (rgn_table[rgn].dont_calc_deps) |