diff options
author | Zack Weinberg <zack@codesourcery.com> | 2004-08-18 17:05:14 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2004-08-18 17:05:14 +0000 |
commit | f822d2527eda821d7faeab8370a896d4591a100d (patch) | |
tree | f6d253960bbff5f5f18a47a866cab10b8ece1664 /gcc/loop-iv.c | |
parent | 6aaf3ddef9a6fccf796ff13c7a03952c5d350158 (diff) | |
download | gcc-f822d2527eda821d7faeab8370a896d4591a100d.zip gcc-f822d2527eda821d7faeab8370a896d4591a100d.tar.gz gcc-f822d2527eda821d7faeab8370a896d4591a100d.tar.bz2 |
rtl.def (NIL): Delete.
* rtl.def (NIL): Delete.
* read-rtl.c (read_rtx): Handle (nil) like (define_constants).
Tighten the syntax a little.
* cfgloop.h, combine.c, cse.c, loop-iv.c, postreload.c, reload.c
* config/alpha/alpha.c, config/alpha/alpha.h, config/arc/arc.h
* config/arm/arm.h, config/frv/frv.h, config/i386/i386.c
* config/i386/predicates.md, config/m32r/m32r.h
* config/m68hc11/m68hc11.c, config/mcore/mcore.h, config/mips/mips.c
* config/mmix/mmix.c, config/pa/pa.h, config/sh/sh.h
* config/sparc/sparc.h, doc/tm.texi:
Replace all occurrences of NIL with UNKNOWN.
From-SVN: r86193
Diffstat (limited to 'gcc/loop-iv.c')
-rw-r--r-- | gcc/loop-iv.c | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/gcc/loop-iv.c b/gcc/loop-iv.c index 0a01f86..a7c43e3 100644 --- a/gcc/loop-iv.c +++ b/gcc/loop-iv.c @@ -427,7 +427,7 @@ iv_constant (struct rtx_iv *iv, rtx cst, enum machine_mode mode) iv->base = cst; iv->step = const0_rtx; iv->first_special = false; - iv->extend = NIL; + iv->extend = UNKNOWN; iv->extend_mode = iv->mode; iv->delta = const0_rtx; iv->mult = const1_rtx; @@ -448,7 +448,7 @@ iv_subreg (struct rtx_iv *iv, enum machine_mode mode) val = lowpart_subreg (mode, val, iv->extend_mode); iv->base = val; - iv->extend = NIL; + iv->extend = UNKNOWN; iv->mode = iv->extend_mode = mode; iv->delta = const0_rtx; iv->mult = const1_rtx; @@ -461,7 +461,7 @@ iv_subreg (struct rtx_iv *iv, enum machine_mode mode) if (GET_MODE_BITSIZE (mode) > GET_MODE_BITSIZE (iv->mode)) return false; - iv->extend = NIL; + iv->extend = UNKNOWN; iv->mode = mode; iv->base = simplify_gen_binary (PLUS, iv->extend_mode, iv->delta, @@ -488,7 +488,7 @@ iv_extend (struct rtx_iv *iv, enum rtx_code extend, enum machine_mode mode) val = simplify_gen_unary (extend, mode, val, iv->extend_mode); iv->base = val; - iv->extend = NIL; + iv->extend = UNKNOWN; iv->mode = iv->extend_mode = mode; iv->delta = const0_rtx; iv->mult = const1_rtx; @@ -498,7 +498,7 @@ iv_extend (struct rtx_iv *iv, enum rtx_code extend, enum machine_mode mode) if (mode != iv->extend_mode) return false; - if (iv->extend != NIL + if (iv->extend != UNKNOWN && iv->extend != extend) return false; @@ -512,7 +512,7 @@ iv_extend (struct rtx_iv *iv, enum rtx_code extend, enum machine_mode mode) static bool iv_neg (struct rtx_iv *iv) { - if (iv->extend == NIL) + if (iv->extend == UNKNOWN) { iv->base = simplify_gen_unary (NEG, iv->extend_mode, iv->base, iv->extend_mode); @@ -539,7 +539,7 @@ iv_add (struct rtx_iv *iv0, struct rtx_iv *iv1, enum rtx_code op) rtx arg; /* Extend the constant to extend_mode of the other operand if necessary. */ - if (iv0->extend == NIL + if (iv0->extend == UNKNOWN && iv0->mode == iv0->extend_mode && iv0->step == const0_rtx && GET_MODE_SIZE (iv0->extend_mode) < GET_MODE_SIZE (iv1->extend_mode)) @@ -548,7 +548,7 @@ iv_add (struct rtx_iv *iv0, struct rtx_iv *iv1, enum rtx_code op) iv0->base = simplify_gen_unary (ZERO_EXTEND, iv0->extend_mode, iv0->base, iv0->mode); } - if (iv1->extend == NIL + if (iv1->extend == UNKNOWN && iv1->mode == iv1->extend_mode && iv1->step == const0_rtx && GET_MODE_SIZE (iv1->extend_mode) < GET_MODE_SIZE (iv0->extend_mode)) @@ -562,7 +562,7 @@ iv_add (struct rtx_iv *iv0, struct rtx_iv *iv1, enum rtx_code op) if (mode != iv1->extend_mode) return false; - if (iv0->extend == NIL && iv1->extend == NIL) + if (iv0->extend == UNKNOWN && iv1->extend == UNKNOWN) { if (iv0->mode != iv1->mode) return false; @@ -574,7 +574,7 @@ iv_add (struct rtx_iv *iv0, struct rtx_iv *iv1, enum rtx_code op) } /* Handle addition of constant. */ - if (iv1->extend == NIL + if (iv1->extend == UNKNOWN && iv1->mode == mode && iv1->step == const0_rtx) { @@ -582,7 +582,7 @@ iv_add (struct rtx_iv *iv0, struct rtx_iv *iv1, enum rtx_code op) return true; } - if (iv0->extend == NIL + if (iv0->extend == UNKNOWN && iv0->mode == mode && iv0->step == const0_rtx) { @@ -610,7 +610,7 @@ iv_mult (struct rtx_iv *iv, rtx mby) && GET_MODE (mby) != mode) return false; - if (iv->extend == NIL) + if (iv->extend == UNKNOWN) { iv->base = simplify_gen_binary (MULT, mode, iv->base, mby); iv->step = simplify_gen_binary (MULT, mode, iv->step, mby); @@ -635,7 +635,7 @@ iv_shift (struct rtx_iv *iv, rtx mby) && GET_MODE (mby) != mode) return false; - if (iv->extend == NIL) + if (iv->extend == UNKNOWN) { iv->base = simplify_gen_binary (ASHIFT, mode, iv->base, mby); iv->step = simplify_gen_binary (ASHIFT, mode, iv->step, mby); @@ -750,7 +750,7 @@ get_biv_step_1 (rtx insn, rtx reg, return false; *inner_step = const0_rtx; - *extend = NIL; + *extend = UNKNOWN; *inner_mode = outer_mode; *outer_step = const0_rtx; } @@ -770,7 +770,7 @@ get_biv_step_1 (rtx insn, rtx reg, *inner_step = simplify_gen_binary (PLUS, outer_mode, *inner_step, *outer_step); *outer_step = const0_rtx; - *extend = NIL; + *extend = UNKNOWN; } switch (code) @@ -794,7 +794,7 @@ get_biv_step_1 (rtx insn, rtx reg, case SIGN_EXTEND: case ZERO_EXTEND: if (GET_MODE (op0) != *inner_mode - || *extend != NIL + || *extend != UNKNOWN || *outer_step != const0_rtx) abort (); @@ -827,11 +827,11 @@ get_biv_step (rtx reg, rtx *inner_step, enum machine_mode *inner_mode, return false; if (*inner_mode != *outer_mode - && *extend == NIL) + && *extend == UNKNOWN) abort (); if (*inner_mode == *outer_mode - && *extend != NIL) + && *extend != UNKNOWN) abort (); if (*inner_mode == *outer_mode @@ -1207,7 +1207,7 @@ get_iv_value (struct rtx_iv *iv, rtx iteration) val = lowpart_subreg (iv->mode, val, iv->extend_mode); - if (iv->extend == NIL) + if (iv->extend == UNKNOWN) return val; val = simplify_gen_unary (iv->extend, iv->extend_mode, val, iv->mode); @@ -1727,7 +1727,7 @@ simplify_using_initial_values (struct loop *loop, enum rtx_code op, rtx *expr) else abort (); - simplify_using_initial_values (loop, NIL, &head); + simplify_using_initial_values (loop, UNKNOWN, &head); if (head == aggr) { XEXP (*expr, 0) = aggr; @@ -1753,7 +1753,7 @@ simplify_using_initial_values (struct loop *loop, enum rtx_code op, rtx *expr) return; } - if (op != NIL) + if (op != UNKNOWN) abort (); e = loop_preheader_edge (loop); @@ -1901,15 +1901,15 @@ canonicalize_iv_subregs (struct rtx_iv *iv0, struct rtx_iv *iv1, break; case NE: - if (iv0->extend != NIL - && iv1->extend != NIL + if (iv0->extend != UNKNOWN + && iv1->extend != UNKNOWN && iv0->extend != iv1->extend) return false; signed_p = false; - if (iv0->extend != NIL) + if (iv0->extend != UNKNOWN) signed_p = iv0->extend == SIGN_EXTEND; - if (iv1->extend != NIL) + if (iv1->extend != UNKNOWN) signed_p = iv1->extend == SIGN_EXTEND; break; @@ -2403,7 +2403,7 @@ iv_number_of_iterations (struct loop *loop, rtx insn, rtx condition, goto fail; simplify_using_initial_values (loop, IOR, &desc->noloop_assumptions); simplify_using_initial_values (loop, IOR, &desc->infinite); - simplify_using_initial_values (loop, NIL, &desc->niter_expr); + simplify_using_initial_values (loop, UNKNOWN, &desc->niter_expr); /* Rerun the simplification. Consider code (created by copying loop headers) @@ -2426,7 +2426,7 @@ iv_number_of_iterations (struct loop *loop, rtx insn, rtx condition, goto fail; simplify_using_initial_values (loop, IOR, &desc->noloop_assumptions); simplify_using_initial_values (loop, IOR, &desc->infinite); - simplify_using_initial_values (loop, NIL, &desc->niter_expr); + simplify_using_initial_values (loop, UNKNOWN, &desc->niter_expr); if (desc->noloop_assumptions && XEXP (desc->noloop_assumptions, 0) == const_true_rtx) |