diff mbox

pdp11: add IRA_COVER_CLASSES

Message ID 22F1FB4D-B446-467E-B9A0-F5AA5369E383@dell.com
State New
Headers show

Commit Message

Paul Koning Oct. 22, 2010, 7:56 p.m. UTC
This patch defines IRA_COVER_CLASSES for pdp11.

Tested by cross build and check on compile testcases.  The testcase results change slightly; I'm planning to dig into that later.

Committed.

	paul

ChangeLog:

2010-10-22  Paul Koning  <ni1d@arrl.net>

	* config/pdp11/pdp11.h (IRA_COVER_CLASSES): Define.
diff mbox

Patch

Index: config/pdp11/pdp11.h
===================================================================
--- config/pdp11/pdp11.h	(revision 165842)
+++ config/pdp11/pdp11.h	(working copy)
@@ -320,6 +320,16 @@ 
 #define INDEX_REG_CLASS GENERAL_REGS
 #define BASE_REG_CLASS GENERAL_REGS
 
+/* 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, FPU_REGS, LIM_REG_CLASSES }
+
 /* Given an rtx X being reloaded into a reg required to be
    in class CLASS, return the class of reg to actually use.
    In general this is just CLASS; but on some machines