diff options
author | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-06-26 21:21:34 +0000 |
---|---|---|
committer | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-06-26 21:21:34 +0000 |
commit | 49d00087091a73bd5ed4e29ea8afd093cac6c58f (patch) | |
tree | 2b44df571f1322c6e8919fb2cb0153a1b07bc292 /gcc/tree-ssa-loop-ivopts.c | |
parent | b5b8d5d10f38daca6cd6b592e4d63a5d809fbe82 (diff) | |
download | gcc-49d00087091a73bd5ed4e29ea8afd093cac6c58f.tar.gz |
* builtins.c, c-common.c, c-convert.c, c-decl.c, c-typeck.c,
convert.c, lambda-code.c, predict.c, tree-cfg.c,
tree-complex.c, tree-data-ref.c, tree-if-conv.c,
tree-mudflap.c, tree-scalar-evolution.c, tree-ssa-ccp.c,
tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c,
tree-ssa-loop-manip.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
tree-vect-analyze.c, tree-vect-transform.c, tree-vectorizer.c,
tree.c: Use fold_buildN instead of fold (buildN (...)).
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@101338 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-loop-ivopts.c')
-rw-r--r-- | gcc/tree-ssa-loop-ivopts.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gcc/tree-ssa-loop-ivopts.c b/gcc/tree-ssa-loop-ivopts.c index 5ef9c241b66..acc1ae9c4f0 100644 --- a/gcc/tree-ssa-loop-ivopts.c +++ b/gcc/tree-ssa-loop-ivopts.c @@ -3053,7 +3053,7 @@ get_computation_aff (struct loop *loop, /* We may need to shift the value if we are after the increment. */ if (stmt_after_increment (loop, cand, at)) - cbase = fold (build2 (PLUS_EXPR, uutype, cbase, cstep)); + cbase = fold_build2 (PLUS_EXPR, uutype, cbase, cstep); /* use = ubase - ratio * cbase + ratio * var. @@ -3913,9 +3913,9 @@ iv_value (struct iv *iv, tree niter) tree type = TREE_TYPE (iv->base); niter = fold_convert (type, niter); - val = fold (build2 (MULT_EXPR, type, iv->step, niter)); + val = fold_build2 (MULT_EXPR, type, iv->step, niter); - return fold (build2 (PLUS_EXPR, type, iv->base, val)); + return fold_build2 (PLUS_EXPR, type, iv->base, val); } /* Computes value of candidate CAND at position AT in iteration NITER. */ @@ -3927,7 +3927,7 @@ cand_value_at (struct loop *loop, struct iv_cand *cand, tree at, tree niter) tree type = TREE_TYPE (cand->iv->base); if (stmt_after_increment (loop, cand, at)) - val = fold (build2 (PLUS_EXPR, type, val, cand->iv->step)); + val = fold_build2 (PLUS_EXPR, type, val, cand->iv->step); return val; } @@ -4026,9 +4026,9 @@ may_eliminate_iv (struct ivopts_data *data, else wider_type = nit_type; - if (!integer_nonzerop (fold (build2 (GE_EXPR, boolean_type_node, - fold_convert (wider_type, period), - fold_convert (wider_type, nit))))) + if (!integer_nonzerop (fold_build2 (GE_EXPR, boolean_type_node, + fold_convert (wider_type, period), + fold_convert (wider_type, nit)))) return false; *bound = cand_value_at (loop, cand, use->stmt, nit); |