Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
2f89c8dd
Commit
2f89c8dd
authored
Aug 04, 2008
by
Christoph Mallon
Browse files
Initialise and set the "changed"-flag.
[r20971]
parent
c64dcb13
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/lower/lower_switch.c
View file @
2f89c8dd
...
...
@@ -204,6 +204,7 @@ static void find_cond_nodes(ir_node *block, void *ctx)
* Switch should be transformed into an if cascade.
* So first order the cases, so we can do a binary search on them.
*/
env
->
changed
=
1
;
numcases
=
get_irn_n_outs
(
cond
)
-
1
;
// does not contain default case
NEW_ARR_A
(
case_data_t
,
cases
,
numcases
);
...
...
@@ -255,6 +256,7 @@ void lower_switch(ir_graph *irg, unsigned spare_size)
current_ir_graph
=
irg
;
env
.
changed
=
0
;
env
.
spare_size
=
spare_size
;
remove_critical_cf_edges
(
irg
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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