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
dde80c0c
Commit
dde80c0c
authored
Jan 15, 2016
by
yb9976
Browse files
bechordal: Use sorted list.
This fixes backend/chordal3.c.
parent
cd932032
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/bechordal.c
View file @
dde80c0c
...
...
@@ -132,7 +132,7 @@ static void pair_up_operands(be_chordal_env_t *const env, be_insn_t *const insn)
size_t
n_uses
=
0
;
ir_node
**
const
uses
=
ALLOCAN
(
ir_node
*
,
n_regs
);
for
(
int
i
=
use_start
;
i
<
n_ops
;
++
i
)
{
be_operand_t
*
op
=
&
insn
->
ops
[
i
]
;
be_operand_t
*
op
=
entries
[
i
].
operand
;
if
(
list_has_irn_else_add
(
uses
,
n_uses
,
op
->
carrier
))
{
op
->
carrier
=
NULL
;
}
else
{
...
...
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