condeval is called jump threading now
authorMatthias Braun <matze@braunis.de>
Tue, 14 Jul 2009 15:16:02 +0000 (15:16 +0000)
committerMatthias Braun <matze@braunis.de>
Tue, 14 Jul 2009 15:16:02 +0000 (15:16 +0000)
[r26268]

driver/firm_cmdline.c
driver/firm_cmdline.h
driver/firm_opt.c
driver/firm_timing.def

index bb5ee95..56b89be 100644 (file)
@@ -77,6 +77,8 @@ struct a_firm_opt firm_opt = {
   /* grs_simd_opt    = */ 0,
   /* grs_create_pattern = */ 0,
   /* spare_size      = */ 128,
+  /* enable_statev   = */ FALSE,
+  /* statev_filter   = */ ""
 };
 
 /* dumping options */
index 90ee7f1..5dc7cbf 100644 (file)
@@ -82,6 +82,8 @@ struct a_firm_opt {
   a_byte   grs_simd_opt;
   a_byte   grs_create_pattern;
   unsigned spare_size;      /**< allowed spare size for table switches in machine words. */
+  a_byte   enable_statev;   /**< enable statev output */
+  char     *statev_filter;  /**< statev filter */
 };
 
 /** statistic options */
index c37c87a..883e101 100644 (file)
@@ -384,7 +384,7 @@ static opt_config_t opts[] = {
        { OPT_TARGET_IRG, "sync",        (func_ptr_t) opt_sync,                true, true,  true,  -1 },
        { OPT_TARGET_IRG, "lower",       (func_ptr_t) do_lower_highlevel,      true, true,  true,  -1 },
        { OPT_TARGET_IRG, "deconv",      (func_ptr_t) conv_opt,                true, true,  true,  TV_DECONV },
-       { OPT_TARGET_IRG, "condeval",    (func_ptr_t) opt_cond_eval,           true, true,  true,  TV_COND_EVAL },
+       { OPT_TARGET_IRG, "jumpthreading", (func_ptr_t) opt_jumpthreading,     true, true,  true,  TV_JUMPTHREADING },
        { OPT_TARGET_IRG, "remove_confirms", (func_ptr_t) remove_confirms,     true, false, false, TV_CONFIRM_CREATE },
        { OPT_TARGET_IRG, "gvnpre",      (func_ptr_t) do_gvn_pre,              true, true,  true,  -1 },
        { OPT_TARGET_IRG, "ifconv",      (func_ptr_t) do_if_conv,              true, true,  true,  TV_IF_CONV },
@@ -980,6 +980,15 @@ void gen_firm_finish(FILE *out, const char *input_filename, int c_mode, int new_
 {
   int i;
 
+#if 0
+  if (firm_opt.enable_statev) {
+         char buf[1024];
+         snprintf(buf, sizeof(buf), "%s.ev", input_filename);
+         ir_stat_ev_begin(input_filename, firm_opt.statev_filter);
+         ir_stat_ev_compilation_unit(input_filename);
+  }
+#endif
+
   firm_const_exists = new_firm_const_exists;
 
   /* the general for dumping option must be set, or the others will not work */
index e43899d..cb5d935 100644 (file)
@@ -20,7 +20,7 @@ DEFTIMEVAR(TV_LOAD_STORE_2     , "ldst2",      "Firm: enhanced load/store opt")
 DEFTIMEVAR(TV_STRENGTH_REDUCT  , "strength",   "Firm: strength red")
 DEFTIMEVAR(TV_DEAD_NODE        , "deadnode",   "Firm: dead node elim")
 DEFTIMEVAR(TV_DECONV           , "deconv",     "Firm: conv node opt")
-DEFTIMEVAR(TV_COND_EVAL        , "condeval",   "Firm: conditional evaluation")
+DEFTIMEVAR(TV_JUMPTHREADING    , "jumpthreading", "Firm: jump threading")
 DEFTIMEVAR(TV_CODE_PLACE       , "codeplace",  "Firm: code placement")
 DEFTIMEVAR(TV_IF_CONV          , "ifconv",     "Firm: if conversion")
 DEFTIMEVAR(TV_OSR              , "osr",        "Firm: operator strenght reduce")