diff options
author | Steven Bosscher <steven@gcc.gnu.org> | 2010-01-03 13:13:03 +0000 |
---|---|---|
committer | Steven Bosscher <steven@gcc.gnu.org> | 2010-01-03 13:13:03 +0000 |
commit | b0de17ef396499ebc675c7c902927984625c1752 (patch) | |
tree | 637750849d7de92afc2bfea49d5fe684aeb3e776 /gcc/postreload-gcse.c | |
parent | a8685e159ea52ae6507622f2a81e73f00ace490f (diff) | |
download | gcc-b0de17ef396499ebc675c7c902927984625c1752.tar.gz |
postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM with BLOCK_FOR_INSN.
* 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.
From-SVN: r155586
Diffstat (limited to 'gcc/postreload-gcse.c')
-rw-r--r-- | gcc/postreload-gcse.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/postreload-gcse.c b/gcc/postreload-gcse.c index d7c8878c496..dcd95eb71f8 100644 --- a/gcc/postreload-gcse.c +++ b/gcc/postreload-gcse.c @@ -363,7 +363,8 @@ insert_expr_in_table (rtx x, rtx insn) /* Search for another occurrence in the same basic block. */ avail_occr = cur_expr->avail_occr; - while (avail_occr && BLOCK_NUM (avail_occr->insn) != BLOCK_NUM (insn)) + while (avail_occr + && BLOCK_FOR_INSN (avail_occr->insn) != BLOCK_FOR_INSN (insn)) { /* If an occurrence isn't found, save a pointer to the end of the list. */ |