Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
394833a7
Commit
394833a7
authored
Feb 22, 2009
by
Christoph Mallon
Browse files
When sorting calls enforce a total order, because qsort() needs one.
Revoke PhD from: shack Revoke diploma from: chriswue [r25555]
parent
da784a91
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/beabi.c
View file @
394833a7
...
...
@@ -1110,7 +1110,9 @@ static int cmp_call_dependency(const void *c1, const void *c2)
if
(
dependent_on
(
n2
,
n1
))
return
1
;
return
0
;
/* The nodes have no depth order, but we need a total order because qsort()
* is not stable. */
return
get_irn_idx
(
n1
)
-
get_irn_idx
(
n2
);
}
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment