3 * File name: ir/opt/ldstopt.h
4 * Purpose: optimization of real function calls
8 * Copyright: (c) 1998-2005 Universität Karlsruhe
9 * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE.
15 * Optimization of real function calls.
17 * @author Michael Beck
23 * Optimize function calls by handling real functions.
25 * This optimization first detects all "real fucntions", ie
26 * IR graphs that neither read nor write memory (and hence did
27 * not create exceptions, as these use memory in Firm).
29 * The result of calls to such functions depends only on its
30 * arguments, hence those calls are not anymore pinned.
32 * This is a rather strong criteria, so do not expect that a
33 * lot of functions will be found. Moreover, all of them might
34 * already be inlined if inlining is activated.
35 * Anyway, it might be good for handling builtin's or pseudo-graphs,
36 * even if the later read/write memory (but we know how).
38 void optimize_funccalls(void);
40 #endif /* _FUNCCALL_H_ */