From 81d6d0802dd662e98d229b128f7cc5117e1e99d3 Mon Sep 17 00:00:00 2001 From: Sebastian Pop Date: Tue, 5 Jul 2011 14:50:21 +0000 Subject: [PATCH] Correct computation of max. * graphite-ppl.h (value_max): Correct computation of max. From-SVN: r175859 --- gcc/ChangeLog | 4 ++++ gcc/graphite-ppl.h | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) 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. */ -- 2.30.2