summaryrefslogtreecommitdiff
path: root/gcc/postreload-gcse.c
diff options
context:
space:
mode:
authorsteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>2010-01-03 13:13:03 +0000
committersteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>2010-01-03 13:13:03 +0000
commit90bd219d592763880997f95fe5f2243d4b7b3570 (patch)
tree637750849d7de92afc2bfea49d5fe684aeb3e776 /gcc/postreload-gcse.c
parent951311d4f27cabdda81edf28000d4b4d33588703 (diff)
downloadgcc-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/postreload-gcse.c')
-rw-r--r--gcc/postreload-gcse.c3
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. */