3 * File name: ir/ir/irflag_t.def
4 * Purpose: Flags to control optimizations, inline implementation.
8 * Copyright: (c) 1998-2004 Universität Karlsruhe
9 * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE.
12 /** Turn off all optimizations. */
13 I_FLAG(optimize , 0, ON)
15 /** Common subexpression eliminations: Hash the nodes. */
18 /** Don't use block predecessor for comparison.
19 * Default must be zero as code placement must
20 * be run right after a local optimize walk with
22 I_FLAG(global_cse , 2, OFF)
24 /** Evaluate operations. */
25 I_FLAG(constant_folding , 3, ON)
27 /** Bad node propagation. */
28 I_FLAG(unreachable_code , 4, ON)
31 I_FLAG(control_flow_straightening , 5, ON)
34 I_FLAG(control_flow_weak_simplification , 6, ON)
37 I_FLAG(control_flow_strong_simplification , 7, ON)
39 /** Reclaim memory. */
40 I_FLAG(dead_node_elimination , 8, ON)
42 /** Reassociate nodes. */
43 I_FLAG(reassociation , 9, ON)
45 /** Do inlining transformation. */
46 I_FLAG(inline , 10, ON)
48 /** Remove dynamic method dispatch. */
49 E_FLAG(dyn_meth_dispatch , 11, ON)
51 /** Transformations that normalize the firm representation
52 * as removing Ids and Tuples, useless Phis, SymConst(id) -> Const(entity) ...
54 I_FLAG(normalize , 12, ON)
56 /** Remove tail-recursion. */
57 I_FLAG(tail_recursion , 13, ON)
59 /** Free never called methods */
60 I_FLAG(dead_method_elimination , 14, ON)
62 /** precise exception context */
63 I_FLAG(precise_exc_context , 15, ON)
65 /** Do loop unrolling */
66 I_FLAG(loop_unrolling , 16, OFF) /* currently buggy, 2.1.2006 */
68 /** Do Strength reduction */
69 I_FLAG(strength_red , 17, ON)
71 /** Optimize Loads and Stores */
72 I_FLAG(redundant_loadstore , 18, ON)
74 /** Optimize Fragile OPs */
75 I_FLAG(fragile_ops , 19, OFF)
78 I_FLAG(if_conversion , 20, OFF)
80 /** Optimize real function calls. */
81 I_FLAG(real_function_call , 21, ON)
83 /** Optimize cast nodes. */
84 E_FLAG(optimize_class_casts , 22, ON)
85 E_FLAG(suppress_downcast_optimization , 23, OFF)
87 /** Not really an optimization, removes Confirm nodes. */
88 I_FLAG(remove_confirm , 24, OFF)
90 /** Scalar replacement. */
91 I_FLAG(scalar_replacement , 25, ON)
93 /** Load and Store have only Null exceptions. */
94 I_FLAG(ldst_only_null_ptr_exceptions , 26, ON)
96 /** Sel-based Null-pointer check elimination. */
97 I_FLAG(sel_based_null_check_elim , 27, OFF)
99 /** Closed world assumption. */
100 I_FLAG(closed_world , 31, OFF)