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
95d5fa3e
Commit
95d5fa3e
authored
Aug 14, 2009
by
Matthias Braun
Browse files
free values again if we know we don't need them anymore
[r26343]
parent
83333040
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/benewalloc.c
View file @
95d5fa3e
...
...
@@ -607,7 +607,6 @@ static void permutate_values(ir_nodeset_t *live_nodes, ir_node *before,
ins
[
old_reg
]
=
value
;
++
n_used
[
old_reg
];
//free_reg_of_value(value);
/* free occupation infos, we'll add the values back later */
if
(
live_nodes
!=
NULL
)
{
...
...
@@ -647,9 +646,13 @@ static void permutate_values(ir_nodeset_t *live_nodes, ir_node *before,
/* old register has 1 user less, permutation is resolved */
assert
(
arch_register_get_index
(
arch_get_irn_register
(
src
))
==
old_r
);
permutation
[
r
]
=
r
;
assert
(
n_used
[
old_r
]
>
0
);
--
n_used
[
old_r
];
permutation
[
r
]
=
r
;
if
(
n_used
[
old_r
]
==
0
)
{
free_reg_of_value
(
src
);
}
/* advance or jump back (if this copy enabled another copy) */
if
(
old_r
<
r
&&
n_used
[
old_r
]
==
0
)
{
...
...
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