X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fana%2Fexecution_frequency.c;h=76842770a2a5081cafa9758214885318d3533db4;hb=0f234e2d94155d13c0e4727871125beda0eaa66d;hp=b20f5513f04d52bd89ba6acac6c8ac5bffc111f7;hpb=4b1138a9eee25ce11adbb7d7162eaa49421e8b51;p=libfirm diff --git a/ir/ana/execution_frequency.c b/ir/ana/execution_frequency.c index b20f5513f..76842770a 100644 --- a/ir/ana/execution_frequency.c +++ b/ir/ana/execution_frequency.c @@ -24,13 +24,10 @@ * @date 5.11.2004 * @version $Id$ */ -#ifdef HAVE_CONFIG_H #include "config.h" -#endif #include "execution_frequency.h" -#include "firm_common_t.h" #include "set.h" #include "pdeq.h" #include "hashptr.h" @@ -67,11 +64,11 @@ static int exec_freq_cmp(const void *e1, const void *e2, size_t size) { return (ef1->reg != ef2->reg); } -static INLINE unsigned int exec_freq_hash(reg_exec_freq *e) { +static inline unsigned int exec_freq_hash(reg_exec_freq *e) { return HASH_PTR(e->reg); } -static INLINE void set_region_exec_freq(void *reg, double freq) { +static inline void set_region_exec_freq(void *reg, double freq) { reg_exec_freq ef; ef.reg = reg; ef.freq = freq; @@ -297,7 +294,7 @@ int is_fragile_Proj(ir_node *n) { static double exception_prob = 0.001; -static INLINE int is_loop_head(ir_node *cond) +static inline int is_loop_head(ir_node *cond) { (void) cond; return 0; @@ -307,7 +304,7 @@ static INLINE int is_loop_head(ir_node *cond) * * Given all outs of the predecessor region, we can compute the weight of * this single edge. */ -static INLINE double get_weighted_region_exec_freq(void *reg, int pos) { +static inline double get_weighted_region_exec_freq(void *reg, int pos) { void *pred_reg = get_region_in(reg, pos); double res, full_freq = get_region_exec_freq (pred_reg); int n_outs = get_region_n_outs (pred_reg); @@ -334,7 +331,7 @@ static INLINE double get_weighted_region_exec_freq(void *reg, int pos) { return res; } -static INLINE void compute_region_freqency(void *reg, double head_weight) { +static inline void compute_region_freqency(void *reg, double head_weight) { int i, n_ins = get_region_n_ins(reg); double my_freq = 0;