summaryrefslogtreecommitdiff
path: root/cgcalc.h
diff options
context:
space:
mode:
Diffstat (limited to 'cgcalc.h')
-rw-r--r--cgcalc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/cgcalc.h b/cgcalc.h
index 6eaaae5..ff501e9 100644
--- a/cgcalc.h
+++ b/cgcalc.h
@@ -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 */