From: hubicka Date: Tue, 29 Mar 2016 22:03:00 +0000 (+0000) Subject: * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=39ab29393210e45590b4c56405e949817c83c600;p=thirdparty%2Fgcc.git * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel to HOST_WIDE_INT. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234537 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 37e250412e67..c0691c523ae0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-03-10 Jan Hubicka + + * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel + to HOST_WIDE_INT. + 2016-03-29 Thomas Schwinge * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override. diff --git a/gcc/tree-ssa-loop-ivcanon.c b/gcc/tree-ssa-loop-ivcanon.c index 72f91b273421..9b59b4466c32 100644 --- a/gcc/tree-ssa-loop-ivcanon.c +++ b/gcc/tree-ssa-loop-ivcanon.c @@ -935,7 +935,7 @@ try_peel_loop (struct loop *loop, edge exit, tree niter, HOST_WIDE_INT maxiter) { - int npeel; + HOST_WIDE_INT npeel; struct loop_size size; int peeled_size; sbitmap wont_exit; @@ -990,7 +990,7 @@ try_peel_loop (struct loop *loop, { if (dump_file) fprintf (dump_file, "Not peeling: rolls too much " - "(%i + 1 > --param max-peel-times)\n", npeel); + "(%i + 1 > --param max-peel-times)\n", (int) npeel); return false; } npeel++; @@ -998,7 +998,7 @@ try_peel_loop (struct loop *loop, /* Check peeled loops size. */ tree_estimate_loop_size (loop, exit, NULL, &size, PARAM_VALUE (PARAM_MAX_PEELED_INSNS)); - if ((peeled_size = estimated_peeled_sequence_size (&size, npeel)) + if ((peeled_size = estimated_peeled_sequence_size (&size, (int) npeel)) > PARAM_VALUE (PARAM_MAX_PEELED_INSNS)) { if (dump_file) @@ -1032,7 +1032,7 @@ try_peel_loop (struct loop *loop, if (dump_file && (dump_flags & TDF_DETAILS)) { fprintf (dump_file, "Peeled loop %d, %i times.\n", - loop->num, npeel); + loop->num, (int) npeel); } if (loop->any_upper_bound) loop->nb_iterations_upper_bound -= npeel;