summaryrefslogtreecommitdiffstats
path: root/gcc
diff options
context:
space:
mode:
authorm.hayes <m.hayes@138bc75d-0d04-0410-961f-82ee72b054a4>2000-08-25 10:01:51 +0000
committerm.hayes <m.hayes@138bc75d-0d04-0410-961f-82ee72b054a4>2000-08-25 10:01:51 +0000
commitdc9212bd6ba2b16f009253f7998e2ad22e35ce5f (patch)
tree4f4dfdf3f0f6b19032a451e5e421bead8ee06b9f /gcc
parent9b6e7ea043023b1aab47511b3d4fc6b77ddabf09 (diff)
downloadppe42-gcc-dc9212bd6ba2b16f009253f7998e2ad22e35ce5f.tar.gz
ppe42-gcc-dc9212bd6ba2b16f009253f7998e2ad22e35ce5f.zip
* loop.c (count_loop_regs_set): Replace start and end arguments
with loop argument. All callers udated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35978 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/loop.c17
2 files changed, 14 insertions, 8 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 62a7ded670d..ac38c703bb9 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,4 +1,9 @@
2000-08-26 Michael Hayes <mhayes@cygnus.com>
+
+ * loop.c (count_loop_regs_set): Replace start and end arguments
+ with loop argument. All callers udated.
+
+2000-08-26 Michael Hayes <mhayes@cygnus.com>
* loop.c (constant_high_bytes): Delete.
diff --git a/gcc/loop.c b/gcc/loop.c
index 6c0ae4fb825..a24a72bc5b9 100644
--- a/gcc/loop.c
+++ b/gcc/loop.c
@@ -240,7 +240,8 @@ static int consec_sets_invariant_p PARAMS ((const struct loop *,
static int labels_in_range_p PARAMS ((rtx, int));
static void count_one_set PARAMS ((rtx, rtx, varray_type, rtx *));
-static void count_loop_regs_set PARAMS ((rtx, rtx, varray_type, varray_type,
+static void count_loop_regs_set PARAMS ((const struct loop*,
+ varray_type, varray_type,
int *, int));
static void note_addr_stored PARAMS ((rtx, rtx, void *));
static void note_set_pseudo_multiple_uses PARAMS ((rtx, rtx, void *));
@@ -706,8 +707,8 @@ scan_loop (loop, flags)
VARRAY_CHAR_INIT (may_not_optimize, nregs, "may_not_optimize");
VARRAY_RTX_INIT (reg_single_usage, nregs, "reg_single_usage");
- count_loop_regs_set (loop->top ? loop->top : loop->start, loop->end,
- may_not_optimize, reg_single_usage, &insn_count, nregs);
+ count_loop_regs_set (loop, may_not_optimize, reg_single_usage,
+ &insn_count, nregs);
for (i = 0; i < FIRST_PSEUDO_REGISTER; i++)
{
@@ -3479,8 +3480,8 @@ count_one_set (insn, x, may_not_move, last_set)
In that case, it is the insn that last set reg n. */
static void
-count_loop_regs_set (from, to, may_not_move, single_usage, count_ptr, nregs)
- register rtx from, to;
+count_loop_regs_set (loop, may_not_move, single_usage, count_ptr, nregs)
+ const struct loop *loop;
varray_type may_not_move;
varray_type single_usage;
int *count_ptr;
@@ -3490,7 +3491,8 @@ count_loop_regs_set (from, to, may_not_move, single_usage, count_ptr, nregs)
register rtx insn;
register int count = 0;
- for (insn = from; insn != to; insn = NEXT_INSN (insn))
+ for (insn = loop->top ? loop->top : loop->start; insn != loop->end;
+ insn = NEXT_INSN (insn))
{
if (INSN_P (insn))
{
@@ -9311,8 +9313,7 @@ load_mems_and_recount_loop_regs_set (loop, insn_count)
bzero ((char *) &may_not_optimize->data, nregs * sizeof (char));
bzero ((char *) &reg_single_usage->data, nregs * sizeof (rtx));
- count_loop_regs_set (loop->top ? loop->top : loop->start, loop->end,
- may_not_optimize, reg_single_usage,
+ count_loop_regs_set (loop, may_not_optimize, reg_single_usage,
insn_count, nregs);
for (i = 0; i < FIRST_PSEUDO_REGISTER; i++)
OpenPOWER on IntegriCloud