OSDN Git Service

Correct computation of max.
authorspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 5 Jul 2011 14:50:21 +0000 (14:50 +0000)
committerspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 5 Jul 2011 14:50:21 +0000 (14:50 +0000)
* graphite-ppl.h (value_max): Correct computation of max.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@175859 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/graphite-ppl.h

index 3539ecd..31e5847 100644 (file)
@@ -1,5 +1,9 @@
 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
 
+       * graphite-ppl.h (value_max): Correct computation of max.
+
+2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
+
        * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
 
 2011-07-05  Richard Guenther  <rguenther@suse.de>
index 695d01f..49bde61 100644 (file)
@@ -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.  */