diff options
author | Steven Bosscher <steven@gcc.gnu.org> | 2012-06-17 21:04:41 +0000 |
---|---|---|
committer | Steven Bosscher <steven@gcc.gnu.org> | 2012-06-17 21:04:41 +0000 |
commit | 1c1ad7bbbcd5dc699a37a95d0e898c5d2ad072d1 (patch) | |
tree | fb623bea7d991ba556e0f910d949067cce0700b0 /gcc/cfgloop.h | |
parent | 46d33ae927892aa2fbec97dfa90f7bd9a055a1bb (diff) | |
download | gcc-1c1ad7bbbcd5dc699a37a95d0e898c5d2ad072d1.zip gcc-1c1ad7bbbcd5dc699a37a95d0e898c5d2ad072d1.tar.gz gcc-1c1ad7bbbcd5dc699a37a95d0e898c5d2ad072d1.tar.bz2 |
cfgloop.h: Do not include rtl.h.
* cfgloop.h: Do not include rtl.h.
(enum iv_extend_code): New.
(struct rtx_iv): Use iv_extend_code instead of rtx_code.
* Makefile.in (CFGLOOP_H): Do not depend on RTL_H.
* loop-iv.c (iv_extend_to_rtx_code): New function to translate
an IV_EXTEND_CODE to an RTX_CODE.
(dump_iv_info): Update for rtx_iv field type change.
(iv_constant): Likewise.
(iv_subreg): Likewise.
(iv_extend): Likewise.
(iv_neg): Likewise.
(iv_add): Likewise.
(iv_mult): Likewise.
(iv_shift): Likewise.
(get_biv_step_1): Likewise.
(get_biv_step): Likewise.
(iv_analyze_biv): Likewise.
(get_iv_value): Likewise.
(shorten_into_mode): Likewise.
(canonicalize_iv_subregs): Likewise.
* sese.c (sese_build_liveouts): Use MAY_HAVE_DEBUG_STMTS instead
of MAY_HAVE_DEBUG_INSNS.
* tree-ssa-loop-ivopts.c: Include recog.h after expr.h.
* tree-ssa-loop-prefetch.c: Likewise.
From-SVN: r188711
Diffstat (limited to 'gcc/cfgloop.h')
-rw-r--r-- | gcc/cfgloop.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/gcc/cfgloop.h b/gcc/cfgloop.h index b3c862c..a731354 100644 --- a/gcc/cfgloop.h +++ b/gcc/cfgloop.h @@ -22,8 +22,6 @@ along with GCC; see the file COPYING3. If not see #define GCC_CFGLOOP_H #include "basic-block.h" -/* For rtx_code. */ -#include "rtl.h" #include "vecprim.h" #include "double-int.h" @@ -46,6 +44,14 @@ struct GTY (()) lpt_decision { unsigned times; }; +/* The type of extend applied to an IV. */ +enum iv_extend_code +{ + IV_SIGN_EXTEND, + IV_ZERO_EXTEND, + IV_UNKNOWN_EXTEND +}; + /* The structure describing a bound on number of iterations of a loop. */ struct GTY ((chain_next ("%h.next"))) nb_iter_bound { @@ -342,8 +348,9 @@ struct rtx_iv see the description above). */ rtx base, step; - /* The type of extend applied to it (SIGN_EXTEND, ZERO_EXTEND or UNKNOWN). */ - enum rtx_code extend; + /* The type of extend applied to it (IV_SIGN_EXTEND, IV_ZERO_EXTEND, + or IV_UNKNOWN_EXTEND). */ + enum iv_extend_code extend; /* Operations applied in the extended mode. */ rtx delta, mult; |