diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1997-09-22 03:04:36 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1997-09-22 03:04:36 +0000 |
commit | 159aae925f89b616fe158048848208e088cb1018 (patch) | |
tree | 3adbfebe7de732307dd76907d3520b7db3124dde /gcc/loop.c | |
parent | aac70b8a68c4e38732b57240aa70e236ad2e3914 (diff) | |
download | gcc-159aae925f89b616fe158048848208e088cb1018.tar.gz |
* loop.c (loop_number): Delete function. Change all references
to use uid_loop_num array.
* loop.h (loop_number): Delete declaration.
* unroll.c (unroll_loop): Change "loop_number" references to
use uid_loop_num instead.
Still cleaning up haifa.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@15623 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/loop.c')
-rw-r--r-- | gcc/loop.c | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/gcc/loop.c b/gcc/loop.c index a72fdcbc427..37dd0119392 100644 --- a/gcc/loop.c +++ b/gcc/loop.c @@ -327,9 +327,6 @@ static void insert_bct (); /* Auxiliary function that inserts the bct pattern into the loop */ static void instrument_loop_bct (); - - -int loop_number (); #endif /* HAIFA */ /* Indirect_jump_in_function is computed once per function. */ @@ -7066,7 +7063,7 @@ void analyze_loop_iterations (loop_start, loop_end) enum machine_mode original_mode; /* find the number of the loop */ - int loop_num = loop_number (loop_start, loop_end); + int loop_num = uid_loop_num [INSN_UID (loop_start)]; /* we change our mind only when we are sure that loop will be instrumented */ loop_can_insert_bct[loop_num] = 0; @@ -7257,7 +7254,7 @@ insert_bct (loop_start, loop_end) machine has */ enum machine_mode loop_var_mode = SImode; - int loop_num = loop_number (loop_start, loop_end); + int loop_num = uid_loop_num [INSN_UID (loop_start)]; /* get loop-variables. No need to check that these are valid - already checked in analyze_loop_iterations (). */ @@ -7569,23 +7566,6 @@ instrument_loop_bct (loop_start, loop_end, loop_num_iterations) #endif /* HAVE_decrement_and_branch_on_count */ } - -/* calculate the uid of the given loop */ -int -loop_number (loop_start, loop_end) - rtx loop_start, loop_end; -{ - int loop_num = -1; - - /* assume that this insn contains the LOOP_START - note, so it will not be changed by the loop unrolling */ - loop_num = uid_loop_num[INSN_UID (loop_start)]; - /* sanity check - should never happen */ - if (loop_num == -1) - abort (); - - return loop_num; -} #endif /* HAIFA */ /* Scan the function and determine whether it has indirect (computed) jumps. |