diff options
author | Zdenek Dvorak <dvorakz@suse.cz> | 2006-12-22 22:38:52 +0100 |
---|---|---|
committer | Zdenek Dvorak <rakdver@gcc.gnu.org> | 2006-12-22 21:38:52 +0000 |
commit | 6e682d7ef0a60b540cb66389abff249dfe1ab5fd (patch) | |
tree | b06c0e8f9ec9f1eb10595d5ccba06c4ee8faa074 /gcc/tree-ssa-address.c | |
parent | 54129a64cd5ec8254cdf7cc735537f14cb3c27d7 (diff) | |
download | gcc-6e682d7ef0a60b540cb66389abff249dfe1ab5fd.zip gcc-6e682d7ef0a60b540cb66389abff249dfe1ab5fd.tar.gz gcc-6e682d7ef0a60b540cb66389abff249dfe1ab5fd.tar.bz2 |
tree-ssa-loop-niter.c (zero_p, nonzero_p): Removed.
* tree-ssa-loop-niter.c (zero_p, nonzero_p): Removed.
(number_of_iterations_ne, 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, tree_simplify_using_condition_1,
number_of_iterations_exit, find_loop_niter, loop_niter_by_eval,
implies_nonnegative_p, implies_ge_p, record_nonwrapping_iv,
idx_infer_loop_bounds, n_of_executions_at_most, scev_probably_wraps_p):
Do not use zero_p/nonzero_p.
* tree-ssa-loop-manip.c (determine_exit_conditions): Ditto.
* tree-ssa-loop-ivopts.c (niter_for_exit, determine_biv_step,
find_interesting_uses_op, find_interesting_uses_cond,
find_interesting_uses_address, find_interesting_uses_stmt,
strip_offset_1, add_candidate_1, add_old_ivs_candidates,
difference_cost, determine_use_iv_cost_condition,
rewrite_use_compare, remove_unused_ivs): Ditto.
* tree-ssa-address.c (tree_mem_ref_addr, create_mem_ref_raw): Ditto.
* tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
* tree-cfg.c (find_taken_edge_cond_expr): Ditto.
* tree.h (zero_p): Declaration removed.
(null_or_integer_zerop, nonnull_and_integer_nonzerop): New.
From-SVN: r120156
Diffstat (limited to 'gcc/tree-ssa-address.c')
-rw-r--r-- | gcc/tree-ssa-address.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-ssa-address.c b/gcc/tree-ssa-address.c index eb39370..3fffd1d 100644 --- a/gcc/tree-ssa-address.c +++ b/gcc/tree-ssa-address.c @@ -281,7 +281,7 @@ tree_mem_ref_addr (tree type, tree mem_ref) addr = act_elem; } - if (!zero_p (offset)) + if (offset && !integer_zerop (offset)) { act_elem = fold_convert (type, offset); @@ -325,7 +325,7 @@ create_mem_ref_raw (tree type, struct mem_address *addr) if (addr->step && integer_onep (addr->step)) addr->step = NULL_TREE; - if (addr->offset && zero_p (addr->offset)) + if (addr->offset && integer_zerop (addr->offset)) addr->offset = NULL_TREE; return build7 (TARGET_MEM_REF, type, |