3 * File name: ir/opt/reassoc.h
4 * Purpose: Reassociation
8 * Copyright: (c) 1998-2004 Universität Karlsruhe
9 * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE.
15 * Reassociation optimization.
16 * Uses the "firm.opt.reassoc" debug space
18 * @author Michael Beck
27 * Applies Reassociation rules to integer expressions.
28 * Beware: Works only if integer overflow might be ignored, as for C, Java
29 * and for address expression.
30 * Works only if Constant folding is activated.
32 * Uses loop information to detect loop-invariant (ie contant
33 * inside the loop) values.
35 * See Muchnik 12.3.1 Algebraic Simplification and Reassociation of
36 * Addressing Expressions.
40 void optimize_reassociation(ir_graph *irg);
42 #endif /* _REASSOC_H_ */