diff options
author | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-08-24 16:46:32 +0000 |
---|---|---|
committer | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-08-24 16:46:32 +0000 |
commit | 7562ed74219c1160afbc9331b2512062af969495 (patch) | |
tree | a8c706cf283c42d5d4e89608fbc473e943519e99 /gcc/cfgcleanup.c | |
parent | 9d138f4752f20f04250a2b44e5cfc9afbc24f3cb (diff) | |
download | gcc-7562ed74219c1160afbc9331b2512062af969495.tar.gz |
* basic-block.h (struct basic_block_def): Reorder fields to
eliminate interior padding. Remove 'partition' field.
(BB_DISABLE_SCHEDULE, BB_HOT_PARTITION, BB_COLD_PARTITION)
(BB_UNPARTITIONED, BB_PARTITION, BB_SET_PARTITION)
(BB_COPY_PARTITION): New macros.
* bb-reorder.c, cfgcleanup.c, cfglayout.c, cfgrtl.c, ifcvt.c
Replace all references to the 'partition' field of a basic
block with new macros.
* insn-notes.def: Delete NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
* final.c (final_scan_insn): Don't handle it.
* modulo-sched.c: Set BB_DISABLE_SCHEDULE flag on g->bb
instead of emitting a NOTE_INSN_DISABLE_SCHED_OF_BLOCK note.
* sched-rgn.c (sched_is_disabled_for_current_region_p):
Look for a BB_DISABLE_SCHEDULE flag on the block instead of a note.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@86495 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cfgcleanup.c')
-rw-r--r-- | gcc/cfgcleanup.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/cfgcleanup.c b/gcc/cfgcleanup.c index 8080c663bc7..22821f3a4e6 100644 --- a/gcc/cfgcleanup.c +++ b/gcc/cfgcleanup.c @@ -153,7 +153,7 @@ try_simplify_condjump (basic_block cbranch_block) and cold sections. */ if (flag_reorder_blocks_and_partition - && (jump_block->partition != jump_dest_block->partition + && (BB_PARTITION (jump_block) != BB_PARTITION (jump_dest_block) || (cbranch_jump_edge->flags & EDGE_CROSSING))) return false; @@ -673,7 +673,7 @@ merge_blocks_move_predecessor_nojumps (basic_block a, basic_block b) and cold sections. */ if (flag_reorder_blocks_and_partition - && (a->partition != b->partition + && (BB_PARTITION (a) != BB_PARTITION (b) || find_reg_note (BB_END (a), REG_CROSSING_JUMP, NULL_RTX))) return; @@ -726,7 +726,7 @@ merge_blocks_move_successor_nojumps (basic_block a, basic_block b) if (flag_reorder_blocks_and_partition && (find_reg_note (BB_END (a), REG_CROSSING_JUMP, NULL_RTX) - || a->partition != b->partition)) + || BB_PARTITION (a) != BB_PARTITION (b))) return; real_b_end = BB_END (b); @@ -792,7 +792,7 @@ merge_blocks_move (edge e, basic_block b, basic_block c, int mode) if (flag_reorder_blocks_and_partition && (find_reg_note (BB_END (b), REG_CROSSING_JUMP, NULL_RTX) || find_reg_note (BB_END (c), REG_CROSSING_JUMP, NULL_RTX) - || b->partition != c->partition)) + || BB_PARTITION (b) != BB_PARTITION (c))) return NULL; @@ -1673,7 +1673,7 @@ try_crossjump_bb (int mode, basic_block bb) and cold sections. */ if (flag_reorder_blocks_and_partition - && (bb->pred->src->partition != bb->pred->pred_next->src->partition + && (BB_PARTITION (bb->pred->src) != BB_PARTITION (bb->pred->pred_next->src) || (bb->pred->flags & EDGE_CROSSING))) return false; |