summaryrefslogtreecommitdiffhomepage
path: root/ir/ir/irflag_t.def
blob: f4bb9edac9b1255159b51a50a0bcafc62ae33a5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
 * This file is part of libFirm.
 * Copyright (C) 2012 University of Karlsruhe.
 */

/**
 * @file
 * @brief     Definitions for optimization flags
 * @author    Michael Beck, Sebastian Hack
 */

/** Turn off all optimizations. */
FLAG(optimize                           , 0, ON)

/** Common subexpression eliminations: Hash the nodes. */
FLAG(cse                                , 1, ON)

/** Don't use block predecessor for comparison.
 *  Default must be zero as code placement must
 *  be run right after a local optimize walk with
 *  global_cse on. */
FLAG(global_cse                         , 2, OFF)

/** Evaluate operations. */
FLAG(constant_folding                   , 3, ON)

/** Algebraic simplifications. */
FLAG(algebraic_simplification           , 4, ON)

/** Use Global Null Pointer Test elimination. */
FLAG(global_null_ptr_elimination        , 5, ON)