Lines Matching defs:bb

927   basic_block bb;
939 FOR_EACH_BB (bb)
940 FOR_BB_INSNS (bb, insn)
953 FOR_EACH_BB (bb)
954 FOR_BB_INSNS (bb, insn)
1153 basic_block bb;
1156 FOR_EACH_BB (bb)
1157 FOR_BB_INSNS (bb, insn)
1379 load_killed_in_block_p (basic_block bb, int uid_limit, rtx x, int avail_p)
1381 rtx list_entry = modify_mem_list[bb->index];
1950 int bb;
1967 bb = BLOCK_NUM (insn);
1969 canon_modify_mem_list[bb] =
1970 alloc_EXPR_LIST (VOIDmode, dest_addr, canon_modify_mem_list[bb]);
1971 canon_modify_mem_list[bb] =
1972 alloc_EXPR_LIST (VOIDmode, dest, canon_modify_mem_list[bb]);
1982 int bb = BLOCK_NUM (insn);
1986 modify_mem_list[bb] = alloc_INSN_LIST (insn, modify_mem_list[bb]);
1987 bitmap_set_bit (modify_mem_list_set, bb);
1994 canon_modify_mem_list[bb] =
1995 alloc_INSN_LIST (insn, canon_modify_mem_list[bb]);
1996 bitmap_set_bit (blocks_with_calls, bb);
2437 basic_block bb;
2457 FOR_EACH_BB (bb)
2458 if (TEST_BIT (reg_set_in_block[bb->index], REGNO (x)))
2459 SET_BIT (bmap[bb->index], indx);
2471 FOR_EACH_BB (bb)
2472 if (TEST_BIT (reg_set_in_block[bb->index], REGNO (x)))
2473 RESET_BIT (bmap[bb->index], indx);
2785 cprop_jump (basic_block bb, rtx setcc, rtx jump, rtx from, rtx src)
2878 purge_dead_edges (bb);
3187 basic_block bb;
3196 FOR_EACH_BB (bb)
3198 FOR_BB_INSNS (bb, insn)
3262 basic_block bb;
3274 FOR_BB_BETWEEN (bb, ENTRY_BLOCK_PTR->next_bb->next_bb, EXIT_BLOCK_PTR, next_bb)
3280 FOR_BB_INSNS (bb, insn)
3357 basic_block bb, dest;
3362 FOR_EACH_BB (bb)
3364 if (EDGE_COUNT (bb->succs) > 1)
3366 cond = fis_get_condition (BB_END (bb));
3374 dest = GET_CODE (cond) == EQ ? BRANCH_EDGE (bb)->dest
3375 : FALLTHRU_EDGE (bb)->dest;
3469 find_bypass_set (int regno, int bb)
3480 if (TEST_BIT (cprop_avout[bb], set->bitmap_index))
3532 bypass_block (basic_block bb, rtx setcc, rtx jump)
3551 FOR_EACH_EDGE (e, ei, bb->preds)
3559 for (ei = ei_start (bb->preds); (e = ei_safe_edge (ei)); )
3623 edest = FALLTHRU_EDGE (bb);
3630 edest = find_edge (bb, dest);
3691 basic_block bb;
3705 FOR_BB_BETWEEN (bb, ENTRY_BLOCK_PTR->next_bb->next_bb,
3709 if (!single_pred_p (bb))
3712 FOR_BB_INSNS (bb, insn)
3730 changed |= bypass_block (bb, setcc, insn);
3830 basic_block bb;
3852 FOR_EACH_BB (bb)
3861 FOR_EACH_EDGE (e, ei, bb->preds)
3864 sbitmap_difference (antloc[bb->index], antloc[bb->index], trapping_expr);
3865 sbitmap_difference (transp[bb->index], transp[bb->index], trapping_expr);
3869 sbitmap_a_or_b (ae_kill[bb->index], transp[bb->index], comp[bb->index]);
3870 sbitmap_not (ae_kill[bb->index], ae_kill[bb->index]);
3899 pre_expr_reaches_here_p_work (basic_block occr_bb, struct expr *expr, basic_block bb, char *visited)
3904 FOR_EACH_EDGE (pred, ei, bb->preds)
3945 pre_expr_reaches_here_p (basic_block occr_bb, struct expr *expr, basic_block bb)
3950 rval = pre_expr_reaches_here_p_work (occr_bb, expr, bb, visited);
4003 insert_insn_end_bb (struct expr *expr, basic_block bb, int pre)
4005 rtx insn = BB_END (bb);
4024 && (!single_succ_p (bb)
4025 || single_succ_edge (bb)->flags & EDGE_ABNORMAL)))
4034 || TEST_BIT (antloc[bb->index], expr->bitmap_index)
4035 || TEST_BIT (transp[bb->index], expr->bitmap_index));
4066 && (!single_succ_p (bb)
4067 || single_succ_edge (bb)->flags & EDGE_ABNORMAL))
4079 || TEST_BIT (antloc[bb->index], expr->bitmap_index)
4080 || TEST_BIT (transp[bb->index], expr->bitmap_index));
4085 insn = find_first_parameter_load (insn, BB_HEAD (bb));
4120 fprintf (dump_file, "PRE/HOIST: end of bb %d, insn %d, ",
4121 bb->index, INSN_UID (new_insn));
4147 basic_block bb = INDEX_EDGE_PRED_BB (edge_list, e);
4180 insert_insn_end_bb (index_map[j], bb, 0);
4190 bb->index,
4315 "PRE: bb %d, insn %d, copy expression %d in insn %d to reg %d\n",
4446 basic_block bb = BLOCK_FOR_INSN (insn);
4449 if (TEST_BIT (pre_delete_map[bb->index], indx)
4471 fprintf (dump_file, "bb %d, reaching reg is %d\n",
4472 bb->index, REGNO (expr->reaching_reg));
4648 basic_block bb;
4654 FOR_EACH_BB (bb)
4659 if (! CALL_P (BB_END (bb)))
4673 RESET_BIT (transpout[bb->index], expr->bitmap_index);
4735 basic_block bb;
4749 FOR_EACH_BB_REVERSE (bb)
4751 changed |= sbitmap_a_or_b_and_c_cg (hoist_vbein[bb->index], antloc[bb->index],
4752 hoist_vbeout[bb->index], transp[bb->index]);
4753 if (bb->next_bb != EXIT_BLOCK_PTR)
4754 sbitmap_intersection_of_succs (hoist_vbeout[bb->index], hoist_vbein, bb->index);
4791 hoist_expr_reaches_here_p (basic_block expr_bb, int expr_index, basic_block bb, char *visited)
4804 FOR_EACH_EDGE (pred, ei, bb->preds)
4842 basic_block bb, dominated;
4861 FOR_EACH_BB (bb)
4866 domby_len = get_dominated_by (CDI_DOMINATORS, bb, &domby);
4869 for (i = 0; i < hoist_vbeout[bb->index]->n_bits; i++)
4873 if (TEST_BIT (hoist_vbeout[bb->index], i)
4874 && TEST_BIT (transpout[bb->index], i))
4883 if (bb == dominated)
4896 if (hoist_expr_reaches_here_p (bb, i, dominated, NULL))
4912 SET_BIT (hoist_exprs[bb->index], i);
4925 for (i = 0; i < hoist_exprs[bb->index]->n_bits; i++)
4932 if (TEST_BIT (hoist_exprs[bb->index], i))
4941 if (bb == dominated)
4955 if (hoist_expr_reaches_here_p (bb, i, dominated, NULL))
4983 insert_insn_end_bb (index_map[i], bb, 0);
5300 basic_block bb;
5307 FOR_EACH_BB (bb)
5309 FOR_BB_INSNS (bb, insn)
5653 basic_block bb = BLOCK_FOR_INSN (insn);
5700 && BLOCK_FOR_INSN (tmp) != bb)
5705 if (store_killed_before (dest, ptr->pattern_regs, insn, bb, regs_set_before))
5722 if (BLOCK_FOR_INSN (tmp) != bb)
5731 for (tmp = BB_END (bb);
5740 bb, regs_set_after,
5753 basic_block bb;
5771 FOR_EACH_BB (bb)
5776 FOR_BB_INSNS (bb, insn)
5787 SET_BIT (reg_set_in_block[bb->index], regno);
5793 note_stores (pat, reg_set_info, reg_set_in_block[bb->index]);
5799 FOR_BB_INSNS (bb, insn)
6011 store_killed_after (rtx x, rtx x_regs, rtx insn, basic_block bb,
6014 rtx last = BB_END (bb), act;
6040 store_killed_before (rtx x, rtx x_regs, rtx insn, basic_block bb,
6043 rtx first = BB_HEAD (bb);
6060 basic_block bb;
6079 bb = BLOCK_FOR_INSN (insn);
6085 if (TEST_BIT (ae_gen[bb->index], ptr->index))
6090 replace_store_insn (r, XEXP (st, 0), bb, ptr);
6093 SET_BIT (ae_gen[bb->index], ptr->index);
6099 bb = BLOCK_FOR_INSN (insn);
6100 SET_BIT (st_antloc[bb->index], ptr->index);
6111 FOR_EACH_BB (bb)
6114 regs_set_in_block[regno] = TEST_BIT (reg_set_in_block[bb->index], regno);
6118 if (store_killed_after (ptr->pattern, ptr->pattern_regs, BB_HEAD (bb),
6119 bb, regs_set_in_block, NULL))
6123 if (!TEST_BIT (st_antloc[bb->index], ptr->index)
6124 || !TEST_BIT (ae_gen[bb->index], ptr->index))
6125 SET_BIT (ae_kill[bb->index], ptr->index);
6128 SET_BIT (transp[bb->index], ptr->index);
6147 insert_insn_start_bb (rtx insn, basic_block bb)
6150 rtx prev = PREV_INSN (BB_HEAD (bb));
6151 rtx before = BB_HEAD (bb);
6159 if (prev == BB_END (bb))
6169 bb->index);
6183 basic_block bb;
6201 bb = e->dest;
6214 if (!tmp && bb != EXIT_BLOCK_PTR)
6221 insert_insn_start_bb (insn, bb);
6248 remove_reachable_equiv_notes (basic_block bb, struct ls_expr *smexpr)
6259 ei = ei_start (bb->succs);
6276 bb = act->dest;
6278 if (bb == EXIT_BLOCK_PTR
6279 || TEST_BIT (visited, bb->index))
6286 SET_BIT (visited, bb->index);
6288 if (TEST_BIT (st_antloc[bb->index], smexpr->index))
6291 BLOCK_FOR_INSN (XEXP (last, 0)) != bb;
6297 last = NEXT_INSN (BB_END (bb));
6299 for (insn = BB_HEAD (bb); insn != last; insn = NEXT_INSN (insn))
6316 if (EDGE_COUNT (bb->succs) > 0)
6320 ei = ei_start (bb->succs);
6329 replace_store_insn (rtx reg, rtx del, basic_block bb, struct ls_expr *smexpr)
6340 "STORE_MOTION delete insn in BB %d:\n ", bb->index);
6378 for (; insn != NEXT_INSN (BB_END (bb)); insn = NEXT_INSN (insn))
6395 remove_reachable_equiv_notes (bb, smexpr);
6403 delete_store (struct ls_expr * expr, basic_block bb)
6415 if (BLOCK_FOR_INSN (del) == bb)
6419 replace_store_insn (reg, del, bb, expr);
6457 basic_block bb;
6512 FOR_EACH_BB (bb)
6513 if (TEST_BIT (pre_delete_map[bb->index], ptr->index))
6514 delete_store (ptr, bb);