add global_null_ptr_elimination flag
[libfirm] / ir / ir / irflag_t.def
index 7283319..e735997 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 1995-2007 University of Karlsruhe.  All right reserved.
+ * Copyright (C) 1995-2008 University of Karlsruhe.  All right reserved.
  *
  * This file is part of libFirm.
  *
 /**
  * @file
  * @brief     Definitions for optimisation flags
- * @author    Michael Beck
+ * @author    Michael Beck, Sebastian Hack
  * @version   $Id$
  */
 
 /*
  * We have 3 kinds of flags:
- * I_FLAGS are INTERNAL flags: The is only a public set_opt_<flag> function
+ * I_FLAGS are INTERNAL flags: There is only a public set_opt_<flag> function
  * E_FLAGS are EXTERNAL flags: Public get_opt_<flag> and set_opt_<flag> fucntions exists
  * R_FLAGS are RUNNING flags: Use only internally in libfirm to indicate running states
  */
@@ -58,14 +58,14 @@ I_FLAG(control_flow_weak_simplification   , 6, ON)
 /** */
 I_FLAG(control_flow_strong_simplification , 7, ON)
 
-/** Reclaim memory. */
-I_FLAG(dead_node_elimination              , 8, ON)
+/** Algebraic simplifications. */
+I_FLAG(algebraic_simplification           , 8, ON)
 
-/** Reassociate nodes. */
-I_FLAG(reassociation                      , 9, ON)
+/** Use combo instead of df/cf optimizations. */
+I_FLAG(combo                              , 9, ON)
 
-/** Do inlining transformation. */
-I_FLAG(inline                             , 10, ON)
+/** Use Global Null Pointer Test elimination. */
+I_FLAG(global_null_ptr_elimination        , 10, ON)
 
 /** Remove dynamic method dispatch. */
 E_FLAG(dyn_meth_dispatch                  , 11, ON)
@@ -75,30 +75,15 @@ E_FLAG(dyn_meth_dispatch                  , 11, ON)
  */
 I_FLAG(normalize                          , 12, ON)
 
-/** Remove tail-recursion. */
-I_FLAG(tail_recursion                     , 13, ON)
-
-/** Free never called methods */
-I_FLAG(dead_method_elimination            , 14, ON)
-
 /** precise exception context */
 I_FLAG(precise_exc_context                , 15, ON)
 
-/** Do loop unrolling */
-I_FLAG(loop_unrolling                     , 16, OFF)   /* currently buggy, 2.1.2006 */
-
 /** Do Strength reduction */
 I_FLAG(strength_red                       , 17, ON)
 
-/** Optimize Loads and Stores */
-I_FLAG(redundant_loadstore                , 18, ON)
-
 /** Optimize Fragile OPs */
 I_FLAG(fragile_ops                        , 19, OFF)
 
-/** Optimize function calls. */
-I_FLAG(function_call                      , 20, ON)
-
 /** Optimize cast nodes. */
 E_FLAG(optimize_class_casts               , 21, ON)
 E_FLAG(suppress_downcast_optimization     , 22, OFF)