diff options
Diffstat (limited to 'cgcalc.h')
-rw-r--r-- | cgcalc.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -8,6 +8,10 @@ extern void mark_and_count_graph (INSTRUCTION_GRAPH graph); /* # define A_FACTOR 2 */ /* # define D_FACTOR 2 */ # define AD_REG_WEIGHT(n_a_regs,n_d_regs) ((n_a_regs)+(n_d_regs)) +#elif defined (ARM) +/* # define A_FACTOR 5 */ +/* # define D_FACTOR 3 */ +# define AD_REG_WEIGHT(n_a_regs,n_d_regs) ((((n_a_regs)<<2)+(n_a_regs))+((n_d_regs)+(n_d_regs)+(n_d_regs))) #else /* # define A_FACTOR 7 */ /* # define D_FACTOR 3 */ |