From 5de725ee2658320cb6d38df2be92c692831bbe1d Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Tue, 23 Aug 2011 19:19:05 +0200 Subject: [PATCH] fix the fix of the call ordering... --- ir/be/beabihelper.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ir/be/beabihelper.c b/ir/be/beabihelper.c index 7d3efb512..15a870954 100644 --- a/ir/be/beabihelper.c +++ b/ir/be/beabihelper.c @@ -582,10 +582,10 @@ static int cmp_call_dependency(const void *c1, const void *c2) * We MUST NOT order c > a and b > c. */ h1 = get_irn_height(heights, n1); h2 = get_irn_height(heights, n2); - if (h1 < h2) return -1; - if (h1 > h2) return 1; + if (h1 < h2) return 1; + if (h1 > h2) return -1; /* Same height, so use a random (but stable) order */ - return get_irn_idx(n1) - get_irn_idx(n2); + return get_irn_idx(n2) - get_irn_idx(n1); } /** -- 2.20.1