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
61c66f56
Commit
61c66f56
authored
Nov 29, 2012
by
Matthias Braun
Browse files
convert lower_mode_b to assure/confirm_irg_properties style
parent
f8801d59
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/lower/lower_mode_b.c
View file @
61c66f56
...
...
@@ -275,9 +275,8 @@ void ir_lower_mode_b(ir_graph *const irg, ir_mode *const nlowered_mode)
lowered_mode
=
nlowered_mode
;
/* edges are used by part_block_edges in the ir_create_cond_set variant. */
assure_edges
(
irg
);
/* part_block_edges can go wrong with tuples present */
remove_tuples
(
irg
);
assure_irg_properties
(
irg
,
IR_GRAPH_PROPERTY_CONSISTENT_OUT_EDGES
|
IR_GRAPH_PROPERTY_NO_TUPLES
);
add_irg_constraints
(
irg
,
IR_GRAPH_CONSTRAINT_MODEB_LOWERED
);
ir_reserve_resources
(
irg
,
IR_RESOURCE_IRN_LINK
);
...
...
@@ -303,9 +302,5 @@ void ir_lower_mode_b(ir_graph *const irg, ir_mode *const nlowered_mode)
DEL_ARR_F
(
needs_lowering
);
if
(
n
>
0
)
{
/* lowering might create new blocks, so be sure to handle this */
clear_irg_properties
(
irg
,
IR_GRAPH_PROPERTY_CONSISTENT_DOMINANCE
);
edges_deactivate
(
irg
);
}
confirm_irg_properties
(
irg
,
n
>
0
?
IR_GRAPH_PROPERTIES_NONE
:
IR_GRAPH_PROPERTIES_ALL
);
}
Write
Preview
Supports
Markdown
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