diff options
author | Zdenek Dvorak <dvorakz@suse.cz> | 2006-12-24 00:05:52 +0100 |
---|---|---|
committer | Zdenek Dvorak <rakdver@gcc.gnu.org> | 2006-12-23 23:05:52 +0000 |
commit | 6e42ce54f7112bd3f60e160560d31257faf6ce32 (patch) | |
tree | b6c514701475bc8b201274c2bca53ca774f03c64 /gcc/tree-ssa-loop-prefetch.c | |
parent | ebf5f54a1d1b83214d3d7083bb656b3808658794 (diff) | |
download | gcc-6e42ce54f7112bd3f60e160560d31257faf6ce32.zip gcc-6e42ce54f7112bd3f60e160560d31257faf6ce32.tar.gz gcc-6e42ce54f7112bd3f60e160560d31257faf6ce32.tar.bz2 |
tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne, [...]): Use integer_zerop/integer_nonzerop instead of...
* tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne,
assert_no_overflow_lt, assert_loop_rolls_lt,
number_of_iterations_lt, number_of_iterations_le,
number_of_iterations_cond, number_of_iterations_exit):
Use integer_zerop/integer_nonzerop instead of
null_or_integer_zerop/nonnull_and_integer_nonzerop.
* tree.h (null_or_integer_zerop, nonnull_and_integer_nonzerop):
Removed.
* tree-scalar-evolution.c (simple_iv): Return zero for step of
an invariant.
* tree-ssa-loop-ivopts.c (alloc_iv): Do not set step of invariants
to zero.
(get_iv): Return NULL for non-scalar types. Use zero as a step
of an invariant.
(determine_biv_step, find_interesting_uses_op,
find_interesting_uses_cond, find_interesting_uses_stmt,
add_old_ivs_candidates, determine_use_iv_cost_condition,
rewrite_use_compare, remove_unused_ivs):
Use integer_zerop instead of null_or_integer_zerop.
(struct ifs_ivopts_data): Replace step_p field with step field.
(idx_find_step): Use zero as a step of an invariant. Modify
step instead of *step_p.
(find_interesting_uses_address): Use zero as a step of an invariant.
Use integer_zerop instead of null_or_integer_zerop.
(find_interesting_uses_outside): Call find_interesting_uses_op only
for phi nodes for real operands.
(add_candidate_1): Expect step to be non-NULL.
* tree-ssa-loop-prefetch.c (idx_analyze_ref): Expect step to be
non-NULL.
From-SVN: r120179
Diffstat (limited to 'gcc/tree-ssa-loop-prefetch.c')
-rw-r--r-- | gcc/tree-ssa-loop-prefetch.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/gcc/tree-ssa-loop-prefetch.c b/gcc/tree-ssa-loop-prefetch.c index c8e6922..198c234 100644 --- a/gcc/tree-ssa-loop-prefetch.c +++ b/gcc/tree-ssa-loop-prefetch.c @@ -337,14 +337,9 @@ idx_analyze_ref (tree base, tree *index, void *data) ibase = iv.base; step = iv.step; - if (null_or_integer_zerop (step)) - istep = 0; - else - { - if (!cst_and_fits_in_hwi (step)) - return false; - istep = int_cst_value (step); - } + if (!cst_and_fits_in_hwi (step)) + return false; + istep = int_cst_value (step); if (TREE_CODE (ibase) == PLUS_EXPR && cst_and_fits_in_hwi (TREE_OPERAND (ibase, 1))) |