ec277d0327267eacd7be5b0cb838d34f7c782242
[libfirm] / ir / ir / irflag_t.def
1 /*
2  * Project:     libFIRM
3  * File name:   ir/ir/irflag_t.def
4  * Purpose:     Flags to control optimizations, inline implementation.
5  * Author:      Michael Beck
6  * Created:
7  * CVS-ID:      $Id$
8  * Copyright:   (c) 1998-2004 Universität Karlsruhe
9  * Licence:     This file protected by GPL -  GNU GENERAL PUBLIC LICENSE.
10  */
11
12 /** Turn off all optimizations. */
13 I_FLAG(optimize                           , 0, ON)
14
15 /** Common subexpression eliminations: Hash the nodes. */
16 E_FLAG(cse                                , 1, ON)
17
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
21  *  global_cse on. */
22 I_FLAG(global_cse                         , 2, OFF)
23
24 /** Evaluate operations. */
25 I_FLAG(constant_folding                   , 3, ON)
26
27 /** Bad node propagation. */
28 I_FLAG(unreachable_code                   , 4, ON)
29
30 /** */
31 I_FLAG(control_flow_straightening         , 5, ON)
32
33 /** */
34 I_FLAG(control_flow_weak_simplification   , 6, ON)
35
36 /** */
37 I_FLAG(control_flow_strong_simplification , 7, ON)
38
39 /** */
40 I_FLAG(critical_edges                     , 8, ON)
41
42 /** Reclaim memory. */
43 I_FLAG(dead_node_elimination              , 9, ON)
44
45 /** Reassociate nodes. */
46 I_FLAG(reassociation                      , 10, ON)
47
48 /** Do inlining transformation. */
49 I_FLAG(inline                             , 11, ON)
50
51 /** Remove dynamic method dispatch. */
52 E_FLAG(dyn_meth_dispatch                  , 12, ON)
53
54 /** Transformations that normalize the firm representation
55  *  as removing Ids and Tuples, useless Phis, SymConst(id) -> Const(entity) ...
56  */
57 I_FLAG(normalize                          , 13, ON)
58
59 /** Remove tail-recursion. */
60 I_FLAG(tail_recursion                     , 14, ON)
61
62 /** Free never called methods */
63 I_FLAG(dead_method_elimination            , 15, ON)
64
65 /** precise exception context */
66 I_FLAG(precise_exc_context                , 16, ON)
67
68 /** Do loop unrolling */
69 I_FLAG(loop_unrolling                     , 17, OFF)    /* currently buggy, 2.1.2006 */
70
71 /** Do Strength reduction */
72 I_FLAG(strength_red                       , 18, ON)
73
74 /** Optimize Loads and Stores */
75 I_FLAG(redundant_loadstore                , 19, ON)
76
77 /** Optimize Fragile OPs */
78 I_FLAG(fragile_ops                        , 20, OFF)
79
80 /** If conversion. */
81 I_FLAG(if_conversion                      , 21, OFF)
82
83 /** Optimize real function calls. */
84 I_FLAG(real_function_call                 , 22, ON)
85
86 /** Optimize cast nodes. */
87 E_FLAG(optimize_class_casts               , 23, ON)
88 E_FLAG(suppress_downcast_optimization     , 24, OFF)
89
90 /** Not really an optimization, removes Confirm nodes. */
91 I_FLAG(remove_confirm                     , 25, OFF)
92
93 /** Scalar replacement. */
94 I_FLAG(scalar_replacement                 , 26, ON)
95
96 /** Load and Store have only Null exceptions. */
97 I_FLAG(ldst_only_null_ptr_exceptions      , 27, ON)
98
99 /** Sel-based Null-pointer check elimination. */
100 I_FLAG(sel_based_null_check_elim          , 28, OFF)