diff options
author | rakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-11-21 23:54:16 +0000 |
---|---|---|
committer | rakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-11-21 23:54:16 +0000 |
commit | d9e7e1a2cbb1c2971b273141966258bc8c8d8629 (patch) | |
tree | bf6b0974fc31405c052970da079d8c6c75d72a63 /gcc/modulo-sched.c | |
parent | 073924283c3944e098ae1011b58d31e0d05bdbcd (diff) | |
download | gcc-d9e7e1a2cbb1c2971b273141966258bc8c8d8629.tar.gz |
* tree-loop-linear.c (linear_transform_loops): Use single_exit accessor
functions.
* tree-ssa-loop-niter.c (loop_only_exit_p): Ditto.
* cfgloopmanip.c (update_single_exits_after_duplication,
update_single_exit_for_duplicated_loop, loop_version): Ditto.
* tree-scalar-evolution.c (get_loop_exit_condition,
get_exit_conditions_rec, loop_closed_phi_def,
number_of_iterations_in_loop, scev_const_prop): Ditto.
* tree-ssa-loop-ivopts.c (single_dom_exit): Ditto.
* modulo-sched.c (generate_prolog_epilog, loop_canon_p, sms_schedule):
Ditto.
* tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
Ditto.
* tree-vectorizer.c (slpeel_update_phis_for_duplicate_loop,
slpeel_update_phi_nodes_for_guard1, slpeel_update_phi_nodes_for_guard2,
slpeel_make_loop_iterate_ntimes,
slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_can_duplicate_loop_p,
slpeel_verify_cfg_after_peeling, slpeel_tree_peel_loop_to_edge):
Ditto.
* tree-if-conv.c (if_convertible_loop_p): Ditto.
* tree-vect-analyze.c (vect_analyze_operations, vect_stmt_relevant_p,
vect_analyze_loop_form): Ditto.
* lambda-code.c (lambda_loopnest_to_gcc_loopnest, exit_phi_for_loop_p,
can_convert_to_perfect_nest, perfect_nestify): Ditto.
* tree-vect-transform.c (vect_create_epilog_for_reduction,
vect_update_ivs_after_vectorizer, vect_do_peeling_for_loop_bound,
vect_transform_loop): Ditto.
* cfgloop.c (mark_single_exit_loops, verify_loop_structure): Ditto.
(single_exit, set_single_exit): New functions.
* cfgloop.h (struct loop): Rename single_exit field to single_exit_.
(single_exit, set_single_exit): Declare.
* doc/loop.texi: Undocument single_exit field. Document single_exit
accessor function.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@119075 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/modulo-sched.c')
-rw-r--r-- | gcc/modulo-sched.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/gcc/modulo-sched.c b/gcc/modulo-sched.c index 62918a057ee..a7dae15e015 100644 --- a/gcc/modulo-sched.c +++ b/gcc/modulo-sched.c @@ -755,8 +755,8 @@ generate_prolog_epilog (partial_schedule_ptr ps, struct loop * loop, rtx count_r duplicate_insns_of_cycles (ps, i + 1, last_stage, 0); /* Put the epilogue on the exit edge. */ - gcc_assert (loop->single_exit); - e = loop->single_exit; + gcc_assert (single_exit (loop)); + e = single_exit (loop); split_edge_and_insert (e, get_insns()); end_sequence (); } @@ -814,7 +814,7 @@ loop_canon_p (struct loop *loop) if (loop->inner || ! loop->outer) return false; - if (!loop->single_exit) + if (!single_exit (loop)) { if (dump_file) { @@ -943,14 +943,14 @@ sms_schedule (void) get_ebb_head_tail (bb, bb, &head, &tail); latch_edge = loop_latch_edge (loop); - gcc_assert (loop->single_exit); - if (loop->single_exit->count) - trip_count = latch_edge->count / loop->single_exit->count; + gcc_assert (single_exit (loop)); + if (single_exit (loop)->count) + trip_count = latch_edge->count / single_exit (loop)->count; /* Perfrom SMS only on loops that their average count is above threshold. */ if ( latch_edge->count - && (latch_edge->count < loop->single_exit->count * SMS_LOOP_AVERAGE_COUNT_THRESHOLD)) + && (latch_edge->count < single_exit (loop)->count * SMS_LOOP_AVERAGE_COUNT_THRESHOLD)) { if (dump_file) { @@ -1037,9 +1037,9 @@ sms_schedule (void) get_ebb_head_tail (loop->header, loop->header, &head, &tail); latch_edge = loop_latch_edge (loop); - gcc_assert (loop->single_exit); - if (loop->single_exit->count) - trip_count = latch_edge->count / loop->single_exit->count; + gcc_assert (single_exit (loop)); + if (single_exit (loop)->count) + trip_count = latch_edge->count / single_exit (loop)->count; if (dump_file) { |