Reassoiation optimization added
[libfirm] / ir / opt / reassoc.h
1 /*
2  * Project:     libFIRM
3  * File name:   ir/opt/reassoc.h
4  * Purpose:     Reassociation
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 /**
13  * @file reassoc.h
14  *
15  * Reassociation optimization.
16  *
17  * @author Michael Beck
18  */
19 #ifndef _REASSOC_H_
20 #define _REASSOC_H_
21
22 #include "irgraph.h"
23
24 /** Reassociation.
25  *
26  * Applies Reassiciation rules to integer expressions.
27  * Beware: Works only if integer overflow might be ignored, as for C, Java
28  * and for address expression.
29  * Works only if Constant folding is activated.
30  *
31  * See Muchnik 12.3.1 Algebraic Simplification and Reassociation of
32  * Addressing Expressions.
33  */
34 void optimize_reassociation(ir_graph *irg);
35
36 #endif /* _REASSOC_H_ */