mirror of
git://c9x.me/qbe.git
synced 2026-05-26 15:34:41 +00:00
bump max parallel move size
This commit is contained in:
parent
e01207f772
commit
2ccbf477c7
10
rega.c
10
rega.c
@ -15,13 +15,17 @@ struct RMap {
|
||||
int n;
|
||||
};
|
||||
|
||||
enum {
|
||||
NPm = 128, /* max copies in a parallel move */
|
||||
};
|
||||
|
||||
static bits regu; /* registers used */
|
||||
static Tmp *tmp; /* function temporaries */
|
||||
static Mem *mem; /* function mem references */
|
||||
static struct {
|
||||
Ref src, dst;
|
||||
int cls;
|
||||
} pm[Tmp0]; /* parallel move constructed */
|
||||
} pm[NPm]; /* parallel move constructed */
|
||||
static int npm; /* size of pm */
|
||||
static int loop; /* current loop level */
|
||||
|
||||
@ -190,8 +194,8 @@ mdump(RMap *m)
|
||||
static void
|
||||
pmadd(Ref src, Ref dst, int k)
|
||||
{
|
||||
if (npm == Tmp0)
|
||||
die("cannot have more moves than registers");
|
||||
if (npm == NPm)
|
||||
die("no more pm slots");
|
||||
pm[npm].src = src;
|
||||
pm[npm].dst = dst;
|
||||
pm[npm].cls = k;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user