local_optimize() now kills unrteachable code if dominance info is available.
[libfirm] / ir / ir / irflag_t.h
index 601ad27..47c755b 100644 (file)
@@ -102,6 +102,12 @@ typedef enum {
   OPT_CLASS_CASTS                        = 0x00400000,
   OPT_SUPPRESS_DOWNCAST_OPT              = 0x00800000,
 
+  /** Not really an optimization, removes Confirm nodes */
+  OPT_REMOVE_CONFIRM                     = 0x01000000,
+
+  /** Scalar replacement. */
+  OPT_SCALAR_REPLACEMENT                 = 0x02000000,
+
   /** Turn off all optimizations. */
   OPT_OPTIMIZED                          = 0x40000000,
 
@@ -287,6 +293,22 @@ static INLINE int get_opt_real_func_call(void)
   return libFIRM_opt & OPT_REAL_FUNC_CALL;
 }
 
+/** Returns Confirm removal setting. */
+static INLINE int get_opt_remove_Confirm(void)
+{
+  return libFIRM_opt & OPT_REMOVE_CONFIRM;
+}
+
+/** Returns Confirm removal setting. */
+static INLINE int get_opt_scalar_replacement(void)
+{
+  return libFIRM_opt & OPT_SCALAR_REPLACEMENT;
+}
+
+static INLINE int get_opt_scalar_replacement_verbose(void) {
+  return libFIRM_verb & OPT_SCALAR_REPLACEMENT;
+}
+
 #define get_opt_cse()                            _get_opt_cse()
 #define get_firm_verbosity()                     _get_firm_verbosity()
 #define get_opt_dyn_meth_dispatch()              _get_opt_dyn_meth_dispatch()