summaryrefslogtreecommitdiff
path: root/gcc/regs.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/regs.h')
-rw-r--r--gcc/regs.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/regs.h b/gcc/regs.h
index 17293d68497..c26528d0574 100644
--- a/gcc/regs.h
+++ b/gcc/regs.h
@@ -176,6 +176,12 @@ extern int caller_save_needed;
#define CALLER_SAVE_PROFITABLE(REFS, CALLS) (4 * (CALLS) < (REFS))
#endif
+/* On most machines a register class is likely to be spilled if it
+ only has one register. */
+#ifndef CLASS_LIKELY_SPILLED_P
+#define CLASS_LIKELY_SPILLED_P(CLASS) (reg_class_size[(int) (CLASS)] == 1)
+#endif
+
/* Allocated in local_alloc. */
/* A list of SCRATCH rtl allocated by local-alloc. */