This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Define IRA_COVER_CLASSES for CRX target


Hello,

Patch below to define IRA_COVER_CLASSES for the CRX target. Could you please review this patch.

GCC test results posted on gcc-testresults mailing list.
url: http://gcc.gnu.org/ml/gcc-testresults/2008-09/msg00097.html

Thanks
Swami


gcc/ChangeLog 2008-09-02 M R Swami Reddy <MR.Swami.Reddy@nsc.com>

* config/crx/crx.h (IRA_COVER_CLASSES): Define.

Index: gcc/config/crx/crx.h
===================================================================
--- gcc/config/crx/crx.h       (revision 139863)
+++ gcc/config/crx/crx.h       (working copy)
@@ -182,6 +182,19 @@

#define N_REG_CLASSES (int) LIM_REG_CLASSES

+/* The following macro defines cover classes for Integrated Register
+   Allocator.  Cover classes is a set of non-intersected register
+   classes covering all hard registers used for register allocation
+   purpose.  Any move between two registers of a cover class should be
+   cheaper than load or store of the registers.  The macro value is
+   array of register classes with LIM_REG_CLASSES used as the end
+   marker.  */
+
+#define IRA_COVER_CLASSES         \
+{                                 \
+   GENERAL_REGS, LIM_REG_CLASSES  \
+}
+
 #define REG_CLASS_NAMES \
   {                    \
     "NO_REGS",         \


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]