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
fb346164
Commit
fb346164
authored
Sep 15, 2011
by
Andreas Zwinkau
Browse files
No unreachable code in backend
parent
71dab804
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/bemain.c
View file @
fb346164
...
...
@@ -413,6 +413,10 @@ static void initialize_birg(be_irg_t *birg, ir_graph *irg, be_main_env_t *env)
/* set the current graph (this is important for several firm functions) */
current_ir_graph
=
irg
;
/* For code generation all unreachable code and Bad nodes should be gone */
remove_unreachable_blocks
(
irg
);
remove_bads
(
irg
);
/* we do this before critical edge split. As this produces less returns,
because sometimes (= 164.gzip) multiple returns are slower */
normalize_n_returns
(
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