aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-loop-ivcanon.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/tree-ssa-loop-ivcanon.c')
-rw-r--r--gcc/tree-ssa-loop-ivcanon.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/tree-ssa-loop-ivcanon.c b/gcc/tree-ssa-loop-ivcanon.c
index 67c5998..7271878 100644
--- a/gcc/tree-ssa-loop-ivcanon.c
+++ b/gcc/tree-ssa-loop-ivcanon.c
@@ -86,7 +86,7 @@ create_canonical_iv (struct loop *loop, edge exit, tree niter)
type = TREE_TYPE (niter);
niter = fold (build2 (PLUS_EXPR, type,
niter,
- build_int_cst (type, 1, 0)));
+ build_int_cst (type, 1)));
incr_at = bsi_last (in->src);
create_iv (niter,
fold_convert (type, integer_minus_one_node),
@@ -96,7 +96,7 @@ create_canonical_iv (struct loop *loop, edge exit, tree niter)
cmp = (exit->flags & EDGE_TRUE_VALUE) ? EQ_EXPR : NE_EXPR;
COND_EXPR_COND (cond) = build2 (cmp, boolean_type_node,
var,
- build_int_cst (type, 0, 0));
+ build_int_cst (type, 0));
modify_stmt (cond);
}
@@ -221,7 +221,7 @@ canonicalize_loop_induction_variables (struct loops *loops, struct loop *loop,
we expect (i.e. it returns number of executions of the exit
condition, not of the loop latch edge). */
niter = fold (build2 (MINUS_EXPR, TREE_TYPE (niter), niter,
- build_int_cst (TREE_TYPE (niter), 1, 0)));
+ build_int_cst (TREE_TYPE (niter), 1)));
}
else if (try_eval)
niter = find_loop_niter_by_eval (loop, &exit);