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
53621afc
Commit
53621afc
authored
Jan 20, 2014
by
yb9976
Browse files
Consider all Projs, since they may have normal users.
parent
6779f14d
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/ir/irnode.c
View file @
53621afc
...
@@ -1164,12 +1164,10 @@ bool only_used_by_keepalive(const ir_node *node)
...
@@ -1164,12 +1164,10 @@ bool only_used_by_keepalive(const ir_node *node)
foreach_out_edge
(
node
,
edge
)
{
foreach_out_edge
(
node
,
edge
)
{
ir_node
*
succ
=
get_edge_src_irn
(
edge
);
ir_node
*
succ
=
get_edge_src_irn
(
edge
);
if
(
is_End
(
succ
))
{
if
(
is_End
(
succ
)
||
(
is_Proj
(
succ
)
&&
only_used_by_keepalive
(
succ
))
)
{
kept
=
true
;
kept
=
true
;
continue
;
continue
;
}
}
if
(
is_Proj
(
succ
)
&&
only_used_by_keepalive
(
succ
))
return
true
;
/* found a real user */
/* found a real user */
return
false
;
return
false
;
}
}
...
...
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