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
7cfefaae
Commit
7cfefaae
authored
Jun 01, 2008
by
Michael Beck
Browse files
call optimize_cf() to delete dead-code that might arise after cond_eval
[r19906]
parent
b6bbfaeb
Changes
1
Show whitespace changes
Inline
Side-by-side
ir/opt/condeval.c
View file @
7cfefaae
...
...
@@ -696,14 +696,19 @@ void opt_cond_eval(ir_graph* irg)
changed
|=
rerun
;
}
while
(
rerun
);
clear_using_irn_visited
(
irg
);
clear_using_irn_link
(
irg
);
if
(
changed
)
{
/* control flow changed, some blocks may become dead */
set_irg_outs_inconsistent
(
irg
);
set_irg_doms_inconsistent
(
irg
);
set_irg_extblk_inconsistent
(
irg
);
set_irg_loopinfo_inconsistent
(
irg
);
/* Dead code might be created. Optimize it away as it is dangerous
* to call optimize_df() an dead code. */
optimize_cf
(
irg
);
}
clear_using_irn_visited
(
irg
);
clear_using_irn_link
(
irg
);
}
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