diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-08-27 03:45:06 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-08-27 03:45:06 +0000 |
commit | 5493cb9ab6c5e787f31e54d400c418b3becba440 (patch) | |
tree | 8a5ea7b5e088c498bc8731f5ffea30732e00260f /gcc/sched-deps.c | |
parent | 408cf6fb876d42ae5c12ee3d5f4470996fcf5cb6 (diff) | |
download | gcc-5493cb9ab6c5e787f31e54d400c418b3becba440.tar.gz |
* alias.c (memory_modified_1, memory_modified_in_insn_p):
Constify.
* basic-block.h (tree_predicted_by_p, rtl_predicted_by_p):
Likewise.
* bb-reorder.c (copy_bb_p): Likewise.
* cfghooks.c (can_remove_branch_p, can_merge_blocks_p,
predicted_by_p, can_duplicate_block_p, block_ends_with_call_p,
block_ends_with_condjump_p): Likewise.
* cfghooks.h (can_remove_branch_p, can_merge_blocks_p,
predicted_by_p, can_duplicate_block_p, block_ends_with_call_p,
block_ends_with_condjump_p): Likewise.
* cfglayout.c (cfg_layout_can_duplicate_bb_p): Likewise.
* cfgrtl.c (can_delete_note_p, can_delete_label_p,
rtl_can_merge_blocks, cfg_layout_can_merge_blocks_p,
rtl_block_ends_with_call_p, rtl_block_ends_with_condjump_p,
need_fake_edge_p, rtl_can_remove_branch_p): Likewise.
* dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Use
debug_true_const_tree instad of debug_true_tree.
* debug.c (do_nothing_debug_hooks): Likewise.
* debug.h (ignore_block, debug_true_const_tree): Constify.
* dwarf2out.c (stack_adjust_offset, clobbers_queued_reg_save,
dwarf2out_ignore_block, is_pseudo_reg, is_tagged_type,
decl_ultimate_origin, block_ultimate_origin, lookup_decl_loc,
same_dw_val_p, add_ranges, is_subrange_type, type_is_enum,
dbx_reg_number, is_based_loc, field_type,
simple_type_align_in_bits, simple_decl_align_in_bits,
simple_type_size_in_bits, field_byte_offset, insert_float,
type_tag, member_declared_type, is_redundant_typedef,
secname_for_decl, is_inlined_entry_point): Likewise.
* emit-rtl.c (const_next_insn, const_previous_insn,
const_next_nonnote_insn, const_prev_nonnote_insn,
const_next_real_insn, const_prev_real_insn,
const_next_active_insn, const_prev_active_insn, const_next_label,
const_prev_label): Likewise.
* except.h (lookup_stmt_eh_region_fn, lookup_stmt_eh_region):
Likewise.
* haifa-sched.c (may_trap_exp, haifa_classify_insn,
find_set_reg_weight, no_real_insns_p, find_set_reg_weight,
sched_insn_is_legitimate_for_speculation_p): Likewise.
* jump.c (reversed_comparison_code_parts,
reversed_comparison_code, reversed_comparison, condjump_label):
Likewise.
* predict.c (rtl_predicted_by_p, tree_predicted_by_p): Likewise.
* reg-stack.c (stack_regs_mentioned_p, stack_regs_mentioned):
Likewise.
* rtl.h (const_previous_insn, const_next_insn,
const_prev_nonnote_insn, const_next_nonnote_insn,
const_prev_real_insn, const_next_real_insn,
const_prev_active_insn, const_next_active_insn, const_prev_label,
const_next_label, modified_between_p, modified_in_p,
const_note_storeskeep_with_call_p, condjump_label,
reversed_comparison, reversed_comparison_code,
reversed_comparison_code_parts, memory_modified_in_insn_p,
stack_regs_mentioned): Likewise.
* rtlanal.c (modified_between_p, modified_in_p, const_note_stores,
keep_with_call_p): Likewise.
* sched-deps.c (deps_may_trap_p, sched_get_condition,
conditions_mutex_p, sched_insns_conditions_mutex_psd_next_list,
sd_lists_size, sd_lists_empty_p): Likewise.
* sched-int.h (sched_insns_conditions_mutex_p,
haifa_classify_insn, no_real_insns_p,
sched_insn_is_legitimate_for_speculation_p, sd_next_list,
sd_lists_size, sd_lists_empty_p): Likewise.
* sdbout.c (sdb_debug_hooks): Likewise.
* tree-cfg.c (tree_can_merge_blocks_p, is_ctrl_altering_stmt,
stmt_ends_bb_p, tree_can_remove_branch_p, tree_can_duplicate_bb_p,
-tree_block_ends_with_call_p, tree_block_ends_with_condjump_p):
Likewise.
* tree-eh.c (lookup_stmt_eh_region_fn, lookup_stmt_eh_region,
tree_can_throw_internal): Likewise.
* tree-flow-inline.h (phi_nodes): Likewise.
* tree-flow.h (phi_nodesstmt_ends_bb_p, is_ctrl_altering_stmt,
tree_can_throw_internal, lookup_stmt_eh_region): Likewise.
* tree-gimple.c (const_get_call_expr_in): Likewise.
* tree-gimple.h (const_get_call_expr_in): Likewise.
* tree.c (const_lookup_attribute, attribute_list_equal,
attribute_list_contained): Likewise.
* tree.h (attribute_list_equal, attribute_list_contained,
const_lookup_attribute): Likewise.
* vmsdbgout.c (vmsdbgout_ignore_block): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127824 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/sched-deps.c')
-rw-r--r-- | gcc/sched-deps.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/gcc/sched-deps.c b/gcc/sched-deps.c index a5bbac2268e..c0d9f5588e5 100644 --- a/gcc/sched-deps.c +++ b/gcc/sched-deps.c @@ -418,7 +418,7 @@ static bitmap_head *anti_dependency_cache; static bitmap_head *spec_dependency_cache; static int cache_size; -static int deps_may_trap_p (rtx); +static int deps_may_trap_p (const_rtx); static void add_dependence_list (rtx, rtx, int, enum reg_note); static void add_dependence_list_and_free (rtx, rtx *, int, enum reg_note); static void delete_all_dependences (rtx); @@ -429,8 +429,8 @@ static void sched_analyze_1 (struct deps *, rtx, rtx); static void sched_analyze_2 (struct deps *, rtx, rtx); static void sched_analyze_insn (struct deps *, rtx, rtx); -static rtx sched_get_condition (rtx); -static int conditions_mutex_p (rtx, rtx); +static rtx sched_get_condition (const_rtx); +static int conditions_mutex_p (const_rtx, const_rtx); static enum DEPS_ADJUST_RESULT maybe_add_or_update_dep_1 (dep_t, bool, rtx, rtx); @@ -446,13 +446,13 @@ static void check_dep (dep_t, bool); /* Return nonzero if a load of the memory reference MEM can cause a trap. */ static int -deps_may_trap_p (rtx mem) +deps_may_trap_p (const_rtx mem) { - rtx addr = XEXP (mem, 0); + const_rtx addr = XEXP (mem, 0); if (REG_P (addr) && REGNO (addr) >= FIRST_PSEUDO_REGISTER) { - rtx t = get_reg_known_value (REGNO (addr)); + const_rtx t = get_reg_known_value (REGNO (addr)); if (t) addr = t; } @@ -462,7 +462,7 @@ deps_may_trap_p (rtx mem) /* Find the condition under which INSN is executed. */ static rtx -sched_get_condition (rtx insn) +sched_get_condition (const_rtx insn) { rtx pat = PATTERN (insn); rtx src; @@ -498,7 +498,7 @@ sched_get_condition (rtx insn) /* Return nonzero if conditions COND1 and COND2 can never be both true. */ static int -conditions_mutex_p (rtx cond1, rtx cond2) +conditions_mutex_p (const_rtx cond1, const_rtx cond2) { if (COMPARISON_P (cond1) && COMPARISON_P (cond2) @@ -512,7 +512,7 @@ conditions_mutex_p (rtx cond1, rtx cond2) /* Return true if insn1 and insn2 can never depend on one another because the conditions under which they are executed are mutually exclusive. */ bool -sched_insns_conditions_mutex_p (rtx insn1, rtx insn2) +sched_insns_conditions_mutex_p (const_rtx insn1, const_rtx insn2) { rtx cond1, cond2; @@ -542,7 +542,7 @@ sched_insns_conditions_mutex_p (rtx insn1, rtx insn2) This function is used to switch sd_iterator to the next list. !!! For internal use only. Might consider moving it to sched-int.h. */ void -sd_next_list (rtx insn, sd_list_types_def *types_ptr, +sd_next_list (const_rtx insn, sd_list_types_def *types_ptr, deps_list_t *list_ptr, bool *resolved_p_ptr) { sd_list_types_def types = *types_ptr; @@ -587,7 +587,7 @@ sd_next_list (rtx insn, sd_list_types_def *types_ptr, /* Return the summary size of INSN's lists defined by LIST_TYPES. */ int -sd_lists_size (rtx insn, sd_list_types_def list_types) +sd_lists_size (const_rtx insn, sd_list_types_def list_types) { int size = 0; @@ -605,7 +605,7 @@ sd_lists_size (rtx insn, sd_list_types_def list_types) /* Return true if INSN's lists defined by LIST_TYPES are all empty. */ bool -sd_lists_empty_p (rtx insn, sd_list_types_def list_types) +sd_lists_empty_p (const_rtx insn, sd_list_types_def list_types) { return sd_lists_size (insn, list_types) == 0; } |