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
5dcf6dbd
Commit
5dcf6dbd
authored
Mar 14, 2014
by
Matthias Braun
Browse files
fix critical_edge remover clearing too few properties
parent
6ce7d764
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/opt/critical_edges.c
View file @
5dcf6dbd
...
...
@@ -83,7 +83,9 @@ void remove_critical_cf_edges_ex(ir_graph *irg, int ignore_exception_edges)
irg_block_walk_graph
(
irg
,
NULL
,
walk_critical_cf_edges
,
&
env
);
if
(
env
.
changed
)
{
/* control flow changed */
clear_irg_properties
(
irg
,
IR_GRAPH_PROPERTY_CONSISTENT_DOMINANCE
);
clear_irg_properties
(
irg
,
IR_GRAPH_PROPERTIES_ALL
&
~
(
IR_GRAPH_PROPERTY_ONE_RETURN
|
IR_GRAPH_PROPERTY_MANY_RETURNS
));
}
add_irg_properties
(
irg
,
IR_GRAPH_PROPERTY_NO_CRITICAL_EDGES
);
}
...
...
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