diff options
author | Michael Hayes <mhayes@redhat.com> | 2001-01-12 04:09:43 +0000 |
---|---|---|
committer | Michael Hayes <m.hayes@gcc.gnu.org> | 2001-01-12 04:09:43 +0000 |
commit | 099f0f3f6e956a49ecb663000268f3fbcf449dc1 (patch) | |
tree | 841c6f7f5a681573914b47a1f9d98af2f35d31ce /gcc/loop.h | |
parent | 69e905c854d301b0cbc0723a6fd232b2b3bc6e35 (diff) | |
download | gcc-099f0f3f6e956a49ecb663000268f3fbcf449dc1.zip gcc-099f0f3f6e956a49ecb663000268f3fbcf449dc1.tar.gz gcc-099f0f3f6e956a49ecb663000268f3fbcf449dc1.tar.bz2 |
loop.h (total_biv_increment): Constify iv_class pointer.
* loop.h (total_biv_increment): Constify iv_class pointer.
(struct induction): Replace `mem_mode' with `mem' rtx.
* unroll.c (total_biv_increment): Constify iv_class pointer.
* loop.c (loop_giv_reduce_benefit): Derive mem mode from mem rtx.
(find_mem_givs, combine_givs_p): Likewise.
(debug_ivs, debug_iv_class, loop_ivs_dump, loop_iv_class_dump): New.
From-SVN: r38933
Diffstat (limited to 'gcc/loop.h')
-rw-r--r-- | gcc/loop.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -87,7 +87,7 @@ struct induction /* For a biv, this is the place where add_val was found. */ enum machine_mode mode; /* The mode of this biv or giv */ - enum machine_mode mem_mode; /* For DEST_ADDR, mode of the memory object. */ + rtx mem; /* For DEST_ADDR, the memory object. */ rtx mult_val; /* Multiplicative factor for src_reg. */ rtx add_val; /* Additive constant for that product. */ int benefit; /* Gain from eliminating this insn. */ @@ -398,7 +398,7 @@ rtx express_from PARAMS ((struct induction *, struct induction *)); rtx extend_value_for_giv PARAMS ((struct induction *, rtx)); void unroll_loop PARAMS ((struct loop *, int, int)); -rtx biv_total_increment PARAMS ((struct iv_class *)); +rtx biv_total_increment PARAMS ((const struct iv_class *)); unsigned HOST_WIDE_INT loop_iterations PARAMS ((struct loop *)); int precondition_loop_p PARAMS ((const struct loop *, rtx *, rtx *, rtx *, @@ -416,3 +416,4 @@ rtx loop_insn_hoist PARAMS((const struct loop *, rtx)); /* Forward declarations for non-static functions declared in doloop.c. */ int doloop_optimize PARAMS ((const struct loop *)); +rtx doloop_condition_get PARAMS ((rtx)); |