From: Matthias Braun Date: Thu, 21 Jun 2012 10:00:05 +0000 (+0200) Subject: make compiler more deterministic by sorting Perm inputs X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=668ea673fa4b3d4d5d3bd47bce720f844c6aee75;p=libfirm make compiler more deterministic by sorting Perm inputs --- diff --git a/ir/be/beirgmod.c b/ir/be/beirgmod.c index 3270e2c4e..022561a18 100644 --- a/ir/be/beirgmod.c +++ b/ir/be/beirgmod.c @@ -69,6 +69,15 @@ DEBUG_ONLY(static firm_dbg_module_t *dbg = NULL;) +static int cmp_node_nr(const void *a, const void *b) +{ + ir_node **p1 = (ir_node**)a; + ir_node **p2 = (ir_node**)b; + long n1 = get_irn_node_nr(*p1); + long n2 = get_irn_node_nr(*p2); + return (n1>n2) - (n1