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)
40 I_FLAG(critical_edges , 8, ON)
42 /** Reclaim memory. */
43 I_FLAG(dead_node_elimination , 9, ON)
45 /** Reassociate nodes. */
46 I_FLAG(reassociation , 10, ON)
48 /** Do inlining transformation. */
49 I_FLAG(inline , 11, ON)
51 /** Remove dynamic method dispatch. */
52 E_FLAG(dyn_meth_dispatch , 12, ON)
54 /** Transformations that normalize the firm representation
55 * as removing Ids and Tuples, useless Phis, SymConst(id) -> Const(entity) ...
57 I_FLAG(normalize , 13, ON)
59 /** Remove tail-recursion. */
60 I_FLAG(tail_recursion , 14, ON)
62 /** Free never called methods */
63 I_FLAG(dead_method_elimination , 15, ON)
65 /** precise exception context */
66 I_FLAG(precise_exc_context , 16, ON)
68 /** Do loop unrolling */
69 I_FLAG(loop_unrolling , 17, OFF) /* currently buggy, 2.1.2006 */
71 /** Do Strength reduction */
72 I_FLAG(strength_red , 18, ON)
74 /** Optimize Loads and Stores */
75 I_FLAG(redundant_loadstore , 19, ON)
77 /** Optimize Fragile OPs */
78 I_FLAG(fragile_ops , 20, OFF)
81 I_FLAG(if_conversion , 21, OFF)
83 /** Optimize real function calls. */
84 I_FLAG(real_function_call , 22, ON)
86 /** Optimize cast nodes. */
87 E_FLAG(optimize_class_casts , 23, ON)
88 E_FLAG(suppress_downcast_optimization , 24, OFF)
90 /** Not really an optimization, removes Confirm nodes. */
91 I_FLAG(remove_confirm , 25, OFF)
93 /** Scalar replacement. */
94 I_FLAG(scalar_replacement , 26, ON)
96 /** Load and Store have only Null exceptions. */
97 I_FLAG(ldst_only_null_ptr_exceptions , 27, ON)
99 /** Sel-based Null-pointer check elimination. */
100 I_FLAG(sel_based_null_check_elim , 28, OFF)