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
cd3ddec9
Commit
cd3ddec9
authored
May 10, 2011
by
Michael Beck
Browse files
Remove kept Bad AFTER dead blocks are deleted to ensure no Bad ist kept.
parent
e89d2463
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/ir/irgopt.c
View file @
cd3ddec9
...
...
@@ -326,15 +326,15 @@ int optimize_graph_df(ir_graph *irg)
if
(
!
state
)
edges_deactivate
(
irg
);
if
(
remove_Bads
(
irg
))
{
edges_deactivate
(
irg
);
}
/* Finally kill BAD and doublets from the keep alives.
Doing this AFTER edges where deactivated saves cycles */
end
=
get_irg_end
(
irg
);
remove_End_Bads_and_doublets
(
end
);
if
(
remove_Bads
(
irg
))
{
edges_deactivate
(
irg
);
}
clear_irg_state
(
irg
,
IR_GRAPH_STATE_BAD_BLOCK
);
current_ir_graph
=
rem
;
...
...
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