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
b1eebb7c
Commit
b1eebb7c
authored
Dec 12, 2008
by
Michael Beck
Browse files
- remove NoMem from keep list
[r24578]
parent
cbaca63d
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/libfirm/irnode.h
View file @
b1eebb7c
...
...
@@ -443,7 +443,7 @@ void set_End_keepalives(ir_node *end, int n, ir_node *in[]);
/** Remove irn from the keep-alive set. */
void
remove_End_keepalive
(
ir_node
*
end
,
ir_node
*
irn
);
/* Remove Bads and doublets from the keep-alive set. */
/* Remove Bads
, NoMem
and doublets from the keep-alive set. */
void
remove_End_Bads_and_doublets
(
ir_node
*
end
);
/** Some parts of the End node are allocated separately -- their memory
...
...
ir/ir/irnode.c
View file @
b1eebb7c
...
...
@@ -923,7 +923,7 @@ found:
ARR_RESIZE
(
ir_node
*
,
end
->
in
,
(
n
-
1
)
+
1
+
END_KEEPALIVE_OFFSET
);
}
/* remove Bads and doublets from the keep-alive set */
/* remove Bads
, NoMems
and doublets from the keep-alive set */
void
remove_End_Bads_and_doublets
(
ir_node
*
end
)
{
pset_new_t
keeps
;
int
idx
,
n
=
get_End_n_keepalives
(
end
);
...
...
@@ -938,7 +938,7 @@ void remove_End_Bads_and_doublets(ir_node *end) {
for
(
idx
=
n
-
1
;
idx
>=
0
;
--
idx
)
{
ir_node
*
ka
=
get_End_keepalive
(
end
,
idx
);
if
(
is_Bad
(
ka
)
||
pset_new_contains
(
&
keeps
,
ka
))
{
if
(
is_Bad
(
ka
)
||
is_NoMem
(
ka
)
||
pset_new_contains
(
&
keeps
,
ka
))
{
/* remove the edge */
edges_notify_edge
(
end
,
idx
,
NULL
,
ka
,
irg
);
...
...
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