projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
291696b
)
fix the fix of the call ordering...
author
Matthias Braun
<matze@braunis.de>
Tue, 23 Aug 2011 17:19:05 +0000
(19:19 +0200)
committer
Matthias Braun
<matze@braunis.de>
Tue, 23 Aug 2011 17:31:45 +0000
(19:31 +0200)
ir/be/beabihelper.c
patch
|
blob
|
history
diff --git
a/ir/be/beabihelper.c
b/ir/be/beabihelper.c
index
7d3efb5
..
15a8709
100644
(file)
--- 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(n
1) - get_irn_idx(n2
);
+ return get_irn_idx(n
2) - get_irn_idx(n1
);
}
/**