isl_union_map_compute_flow: avoid dependence on pointer values
authorSven Verdoolaege <skimo@kotnet.org>
Wed, 15 Dec 2010 12:08:31 +0000 (13:08 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Wed, 15 Dec 2010 15:37:46 +0000 (16:37 +0100)
Before, we would determine a fictious order between sources
based on pointer values.  Since these pointer values may depend
on the history and, on some systems, even on each run, this
could lead to unpredictable results.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_flow.c

index fd9754e..5c1980e 100644 (file)
@@ -1000,7 +1000,7 @@ static int before(void *first, void *second)
        if (n2 < n1)
                n1 = n2;
 
-       return 2 * n1 + (dim1 < dim2);
+       return 2 * n1;
 }
 
 /* Given a sink access, look for all the source accesses that access