/* reassoc = */ TRUE,
/* cse = */ TRUE,
/* control_flow = */ TRUE,
- /* code_place = */ TRUE,
- /* gvn_pre = */ FALSE, /* currently buggy */
+ /* gcse = */ TRUE,
+ /* gvn_pre = */ FALSE,
/* cond_eval = */ FALSE,
/* if_conversion = */ FALSE,
/* func_calls = */ TRUE,
{ X("no-const-fold"), &firm_opt.const_folding, 0, "firm: disable constant folding" },
{ X("control_flow"), &firm_opt.control_flow, 1, "firm: enable control flow optimization" },
{ X("no-control-flow"), &firm_opt.control_flow, 0, "firm: disable control flow optimization" },
- { X("code-place"), &firm_opt.code_place, 1, "firm: enable GCSE and code placement" },
- { X("no-code-place"), &firm_opt.code_place, 0, "firm: disable GCSE and code placement" },
+ { X("gcse"), &firm_opt.gcse, 1, "firm: enable global common subexpression elimination" },
+ { X("no-gcse"), &firm_opt.gcse, 0, "firm: disable global common subexpression elimination" },
{ X("gvn-pre"), &firm_opt.gvn_pre, 1, "firm: enable GVN partial redundancy elimination" },
{ X("no-gvn-pre"), &firm_opt.gvn_pre, 0, "firm: disable GVN partial redundancy elimination" },
{ X("cond-eval"), &firm_opt.cond_eval, 1, "firm: enable partial condition evaluation optimization" },
firm_opt.reassoc = FALSE;
firm_opt.cse = FALSE;
/* firm_opt.control_flow */
- firm_opt.code_place = FALSE;
+ firm_opt.gcse = FALSE;
firm_opt.gvn_pre = FALSE;
firm_opt.cond_eval = FALSE;
firm_opt.if_conversion = FALSE;
res &= firm_be_option("stabs");
return res;
}
- /* OS option must be set to the backend */
- else if (firm_options[i].flag == &firm_opt.os_support) {
- switch (firm_opt.os_support) {
- case OS_SUPPORT_MINGW:
- firm_be_option("ia32-gasmode=mingw");
- break;
- case OS_SUPPORT_MACHO:
- firm_be_option("ia32-gasmode=macho");
- break;
- case OS_SUPPORT_LINUX:
- default:
- firm_be_option("ia32-gasmode=linux");
- break;
- }
- }
break;
}
}
a_byte reassoc; /**< enable reassociation */
a_byte cse; /**< enable common-subexpression elimination */
a_byte control_flow; /**< enable control flow optimizations */
- a_byte code_place; /**< enable global common-subexpression elimination
- and code placement */
+ a_byte gcse; /**< enable global common-subexpression elimination */
a_byte gvn_pre; /**< enable global common-subexpression elimination
and partial redundancy elimination */
a_byte cond_eval; /**< enable condition evaluation */
switch (firm_be_opt.selection) {
#ifdef FIRM2C_BACKEND
case BE_FIRM2C:
- timer_push(TV_FIRM2C_BE);
+ timer_start(TV_FIRM2C_BE);
cbackend_set_debug_retrieve(dbg_retrieve);
generate_code_file(out);
- timer_pop();
+ timer_stop(TV_FIRM2C_BE);
break;
#endif
#ifdef FIRM_BACKEND
case BE_FIRM_BE:
- timer_push(TV_FIRM_BE);
+ timer_start(TV_FIRM_BE);
ir_set_debug_retrieve(dbg_retrieve);
be_main(out, file_name);
- timer_pop();
+ timer_stop(TV_FIRM_BE);
break;
#endif
lower_const_code();
for (i = 0; i < get_irp_n_irgs(); i++) {
- int i2;
-
irg = current_ir_graph = get_irp_irg(i);
- /* test hack... */
- for (i2 = 0; i2 < 3; i2++) {
-
#ifdef FIRM_EXT_GRS
/* If SIMD optimization is on, make sure we have only 1 return */
if (firm_ext_grs.create_pattern || firm_ext_grs.simd_opt)
timer_pop();
DUMP_ONE_C(firm_dump.ir_graph && firm_dump.all_phases, irg, "dead");
CHECK_ONE(firm_opt.check_all, irg);
-
- }
-
}
if (firm_opt.do_inline) {
enum rts_names {
rts_debugbreak, /**< the name of the __debugbreak() intrinsic */
rts_abort, /**< the name of the abort() function */
- rts_alloca, /**< the name of the alloca() function */
rts_abs, /**< the name of the abs() function */
+ rts_alloca, /**< the name of the alloca() function */
rts_labs, /**< the name of the labs() function */
rts_llabs, /**< the name of the llabs() function */
rts_imaxabs, /**< the name of the imaxabs() function */
else {
def_mode:
tarval_snprintf(buf, sizeof(buf), tv);
- fprintf(f, "new_tarval_from_str(\"%s\", %zd, ", buf, strlen(buf));
+ fprintf(f, "new_tarval_from_str(\"%s\", %u, ", buf, strlen(buf));
fprintf(f, "mode_%s)", get_mode_name(mode));
}
}