/* * Project: libFIRM * File name: ir/ir/irflag_t.def * Purpose: Flags to control optimizations, inline implementation. * Author: Michael Beck * Created: * CVS-ID: $Id$ * Copyright: (c) 1998-2004 Universität Karlsruhe * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. */ /** Turn off all optimizations. */ I_FLAG(optimize , 0, ON) /** Common subexpression eliminations: Hash the nodes. */ E_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. */ I_FLAG(global_cse , 2, OFF) /** Evaluate operations. */ I_FLAG(constant_folding , 3, ON) /** Bad node propagation. */ I_FLAG(unreachable_code , 4, ON) /** */ I_FLAG(control_flow_straightening , 5, ON) /** */ I_FLAG(control_flow_weak_simplification , 6, 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) /** Transformations that normalize the firm representation * as removing Ids and Tuples, useless Phis, SymConst(id) -> Const(entity) ... */ 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) /** Do loop unrolling */ I_FLAG(loop_unrolling , 16, OFF) /* currently buggy, 2.1.2006 */ /** 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) /** If conversion. */ I_FLAG(if_conversion , 20, OFF) /** Optimize function calls. */ I_FLAG(function_call , 21, ON) /** Optimize cast nodes. */ E_FLAG(optimize_class_casts , 22, ON) E_FLAG(suppress_downcast_optimization , 23, OFF) /** Not really an optimization, removes Confirm nodes. */ I_FLAG(remove_confirm , 24, OFF) /** Scalar replacement. */ I_FLAG(scalar_replacement , 25, ON) /** Load and Store have only Null exceptions. */ I_FLAG(ldst_only_null_ptr_exceptions , 26, ON) /** Sel-based Null-pointer check elimination. */ I_FLAG(sel_based_null_check_elim , 27, OFF) /** Automatically create Sync node during construction. */ I_FLAG(auto_create_sync , 28, OFF) /** Enable Alias-analysis. */ I_FLAG(alias_analysis , 29, ON) /** Closed world assumption. */ I_FLAG(closed_world , 31, OFF)