projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove the unsafe overflow opt flag again :-( It does not solve
[libfirm]
/
ir
/
ir
/
irflag_t.def
diff --git
a/ir/ir/irflag_t.def
b/ir/ir/irflag_t.def
index
da4b571
..
fc7f00a
100644
(file)
--- a/
ir/ir/irflag_t.def
+++ b/
ir/ir/irflag_t.def
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (C) 1995-200
7
University of Karlsruhe. All right reserved.
+ * Copyright (C) 1995-200
8
University of Karlsruhe. All right reserved.
*
* This file is part of libFirm.
*
*
* This file is part of libFirm.
*
@@
-20,10
+20,17
@@
/**
* @file
* @brief Definitions for optimisation flags
/**
* @file
* @brief Definitions for optimisation flags
- * @author Michael Beck
+ * @author Michael Beck
, Sebastian Hack
* @version $Id$
*/
* @version $Id$
*/
+/*
+ * We have 3 kinds of flags:
+ * I_FLAGS are INTERNAL flags: The 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
+ */
+
/** Turn off all optimizations. */
I_FLAG(optimize , 0, ON)
/** Turn off all optimizations. */
I_FLAG(optimize , 0, ON)
@@
-51,15
+58,6
@@
I_FLAG(control_flow_weak_simplification , 6, ON)
/** */
I_FLAG(control_flow_strong_simplification , 7, ON)
/** */
I_FLAG(control_flow_strong_simplification , 7, ON)
-/** Reclaim memory. */
-I_FLAG(dead_node_elimination , 8, ON)
-
-/** Reassociate nodes. */
-I_FLAG(reassociation , 9, ON)
-
-/** Do inlining transformation. */
-I_FLAG(inline , 10, ON)
-
/** Remove dynamic method dispatch. */
E_FLAG(dyn_meth_dispatch , 11, ON)
/** Remove dynamic method dispatch. */
E_FLAG(dyn_meth_dispatch , 11, ON)
@@
-68,54
+66,44
@@
E_FLAG(dyn_meth_dispatch , 11, ON)
*/
I_FLAG(normalize , 12, 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)
/** 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)
/** 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 Fragile OPs */
I_FLAG(fragile_ops , 19, OFF)
-/** If conversion. */
-I_FLAG(if_conversion , 20, OFF)
-
-/** Optimize function calls. */
-I_FLAG(function_call , 21, ON)
-
/** Optimize cast nodes. */
/** Optimize cast nodes. */
-E_FLAG(optimize_class_casts , 2
2
, ON)
-E_FLAG(suppress_downcast_optimization , 2
3
, OFF)
+E_FLAG(optimize_class_casts , 2
1
, ON)
+E_FLAG(suppress_downcast_optimization , 2
2
, OFF)
/** Not really an optimization, removes Confirm nodes. */
/** Not really an optimization, removes Confirm nodes. */
-I_FLAG(remove_confirm , 2
4
, OFF)
+I_FLAG(remove_confirm , 2
3
, OFF)
/** Scalar replacement. */
/** Scalar replacement. */
-I_FLAG(scalar_replacement , 2
5
, ON)
+I_FLAG(scalar_replacement , 2
4
, ON)
/** Load and Store have only Null exceptions. */
/** Load and Store have only Null exceptions. */
-I_FLAG(ldst_only_null_ptr_exceptions , 2
6
, ON)
+I_FLAG(ldst_only_null_ptr_exceptions , 2
5
, ON)
/** Sel-based Null-pointer check elimination. */
/** Sel-based Null-pointer check elimination. */
-I_FLAG(sel_based_null_check_elim , 2
7
, OFF)
+I_FLAG(sel_based_null_check_elim , 2
6
, OFF)
/** Automatically create Sync node during construction. */
/** Automatically create Sync node during construction. */
-I_FLAG(auto_create_sync , 2
8
, OFF)
+I_FLAG(auto_create_sync , 2
7
, OFF)
/** Enable Alias-analysis. */
/** Enable Alias-analysis. */
-I_FLAG(alias_analysis , 2
9
, ON)
+I_FLAG(alias_analysis , 2
8
, ON)
/** Closed world assumption. */
I_FLAG(closed_world , 31, OFF)
/** Closed world assumption. */
I_FLAG(closed_world , 31, OFF)
+
+/* -------------------- RUNNING flags ------------------- */
+
+/** This flag is set while the reassociation optimizations are running */
+R_FLAG(reassoc , 0)
+
+/** This flag is set while architecture dependent optimizations are running */
+R_FLAG(arch_dep , 0)