projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49925ff
)
synchronize with eccp
author
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Fri, 6 Jun 2008 13:50:14 +0000
(13:50 +0000)
committer
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Fri, 6 Jun 2008 13:50:14 +0000
(13:50 +0000)
[r20005]
driver/firm_opt.c
patch
|
blob
|
history
diff --git
a/driver/firm_opt.c
b/driver/firm_opt.c
index
c33995c
..
b234948
100644
(file)
--- a/
driver/firm_opt.c
+++ b/
driver/firm_opt.c
@@
-1082,6
+1082,12
@@
void gen_firm_finish(FILE *out, const char *input_filename, int c_mode, int firm
/* all graphs are finalized, set the irp phase to high */
set_irp_phase_state(phase_high);
+ /* BEWARE: kill unreachable code before doing compound lowering */
+ for (i = get_irp_n_irgs() - 1; i >= 0; --i) {
+ ir_graph *irg = get_irp_irg(i);
+ optimize_cf(irg);
+ }
+
/* lower all compound call return values */
lower_compound_params();