From 79f1b167de206b643bc1b6ce46d7bd2bb303f427 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Wed, 15 Dec 2010 13:08:31 +0100 Subject: [PATCH] isl_union_map_compute_flow: avoid dependence on pointer values 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 --- isl_flow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/isl_flow.c b/isl_flow.c index fd9754e..5c1980e 100644 --- a/isl_flow.c +++ b/isl_flow.c @@ -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 -- 2.7.4