From: Sebastian Pop Date: Tue, 5 Jul 2011 14:50:21 +0000 (+0000) Subject: Correct computation of max. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=81d6d0802dd662e98d229b128f7cc5117e1e99d3;p=gcc.git Correct computation of max. * graphite-ppl.h (value_max): Correct computation of max. From-SVN: r175859 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3539ecdae26..31e5847a832 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2011-07-05 Sebastian Pop + + * graphite-ppl.h (value_max): Correct computation of max. + 2011-07-05 Sebastian Pop * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space. diff --git a/gcc/graphite-ppl.h b/gcc/graphite-ppl.h index 695d01f3425..49bde618f47 100644 --- a/gcc/graphite-ppl.h +++ b/gcc/graphite-ppl.h @@ -131,7 +131,8 @@ value_max (mpz_t res, mpz_t v1, mpz_t v2) { if (mpz_cmp (v1, v2) < 0) mpz_set (res, v2); - mpz_set (res, v1); + else + mpz_set (res, v1); } /* Builds a new identity map for dimension DIM. */