diff options
author | David S. Miller <davem@redhat.com> | 2003-10-13 17:06:52 -0700 |
---|---|---|
committer | David S. Miller <davem@gcc.gnu.org> | 2003-10-13 17:06:52 -0700 |
commit | 212edd44426d04c2fd3329095e57b857a9b97cc1 (patch) | |
tree | ad48c840f8a87fba15d4601eeeb5257e9b423ae6 /gcc | |
parent | 3eba62b45d34c2bb04584f41cd6d2841f482f907 (diff) | |
download | gcc-212edd44426d04c2fd3329095e57b857a9b97cc1.zip gcc-212edd44426d04c2fd3329095e57b857a9b97cc1.tar.gz gcc-212edd44426d04c2fd3329095e57b857a9b97cc1.tar.bz2 |
ifcvt.c (num_removed_blocks): Rename to num_true_changes.
* ifcvt.c (num_removed_blocks): Rename to num_true_changes.
(find_cond_trap): Always increment if we emit a conditional
trap insn.
From-SVN: r72450
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/ifcvt.c | 27 |
2 files changed, 20 insertions, 13 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 06d9a76..81d9bd9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2003-10-13 David S. Miller <davem@redhat.com> + + * ifcvt.c (num_removed_blocks): Rename to num_true_changes. + (find_cond_trap): Always increment if we emit a conditional + trap insn. + 2003-10-13 Zack Weinberg <zack@codesourcery.com> * Makefile.in (BUILD_RTL): Replace $(BUILD_PREFIX)insn-modes.o diff --git a/gcc/ifcvt.c b/gcc/ifcvt.c index e2575dc..21794b3 100644 --- a/gcc/ifcvt.c +++ b/gcc/ifcvt.c @@ -75,8 +75,8 @@ static int num_possible_if_blocks; execution. */ static int num_updated_if_blocks; -/* # of basic blocks that were removed. */ -static int num_removed_blocks; +/* # of changes made which require life information to be updated. */ +static int num_true_changes; /* Whether conditional execution changes were made. */ static int cond_exec_changed_p; @@ -2016,7 +2016,7 @@ merge_if_block (struct ce_if_block * ce_info) if (post_dominators) delete_from_dominance_info (post_dominators, bb); merge_blocks (combo_bb, bb); - num_removed_blocks++; + num_true_changes++; } while (bb != last_test_bb); } @@ -2033,7 +2033,7 @@ merge_if_block (struct ce_if_block * ce_info) if (post_dominators) delete_from_dominance_info (post_dominators, then_bb); merge_blocks (combo_bb, then_bb); - num_removed_blocks++; + num_true_changes++; } /* The ELSE block, if it existed, had a label. That label count @@ -2044,7 +2044,7 @@ merge_if_block (struct ce_if_block * ce_info) if (post_dominators) delete_from_dominance_info (post_dominators, else_bb); merge_blocks (combo_bb, else_bb); - num_removed_blocks++; + num_true_changes++; } /* If there was no join block reported, that means it was not adjacent @@ -2101,7 +2101,7 @@ merge_if_block (struct ce_if_block * ce_info) if (post_dominators) delete_from_dominance_info (post_dominators, join_bb); merge_blocks (combo_bb, join_bb); - num_removed_blocks++; + num_true_changes++; } else { @@ -2544,6 +2544,8 @@ find_cond_trap (basic_block test_bb, edge then_edge, edge else_edge) if (seq == NULL) return FALSE; + num_true_changes++; + /* Emit the new insns before cond_earliest. */ emit_insn_before_setloc (seq, cond_earliest, INSN_LOCATOR (trap)); @@ -2554,7 +2556,6 @@ find_cond_trap (basic_block test_bb, edge then_edge, edge else_edge) if (post_dominators) delete_from_dominance_info (post_dominators, trap_bb); delete_block (trap_bb); - num_removed_blocks++; } /* If the non-trap block and the test are now adjacent, merge them. @@ -2753,7 +2754,7 @@ find_if_case_1 (basic_block test_bb, edge then_edge, edge else_edge) /* We've possibly created jump to next insn, cleanup_cfg will solve that later. */ - num_removed_blocks++; + num_true_changes++; num_updated_if_blocks++; return TRUE; @@ -2821,7 +2822,7 @@ find_if_case_2 (basic_block test_bb, edge then_edge, edge else_edge) delete_from_dominance_info (post_dominators, else_bb); delete_block (else_bb); - num_removed_blocks++; + num_true_changes++; num_updated_if_blocks++; /* ??? We may now fallthru from one of THEN's successors into a join @@ -3112,7 +3113,7 @@ if_convert (int x_life_data_ok) num_possible_if_blocks = 0; num_updated_if_blocks = 0; - num_removed_blocks = 0; + num_true_changes = 0; life_data_ok = (x_life_data_ok != 0); if (! (* targetm.cannot_modify_jumps_p) ()) @@ -3173,7 +3174,7 @@ if_convert (int x_life_data_ok) clear_aux_for_blocks (); /* Rebuild life info for basic blocks that require it. */ - if (num_removed_blocks && life_data_ok) + if (num_true_changes && life_data_ok) { /* If we allocated new pseudos, we must resize the array for sched1. */ if (max_regno < max_reg_num ()) @@ -3196,8 +3197,8 @@ if_convert (int x_life_data_ok) "%d IF blocks converted.\n", num_updated_if_blocks); fprintf (rtl_dump_file, - "%d basic blocks deleted.\n\n\n", - num_removed_blocks); + "%d true changes made.\n\n\n", + num_true_changes); } #ifdef ENABLE_CHECKING |