mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-30 15:41:12 +00:00
more info in the IR dump
This commit is contained in:
parent
a395a20dba
commit
63e5bc91de
1 changed files with 10 additions and 5 deletions
15
ir.c
15
ir.c
|
@ -2263,7 +2263,7 @@ bool ir_function_allocate_locals(ir_function *self)
|
||||||
break;
|
break;
|
||||||
else
|
else
|
||||||
v->locked = true; /* lock parameters locals */
|
v->locked = true; /* lock parameters locals */
|
||||||
if (!function_allocator_alloc((v->locked || !opt_gt ? &lockalloc : &globalloc), self->locals[i]))
|
if (!function_allocator_alloc((v->locked || !opt_gt ? &lockalloc : &globalloc), v))
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
for (; i < vec_size(self->locals); ++i)
|
for (; i < vec_size(self->locals); ++i)
|
||||||
|
@ -2457,9 +2457,10 @@ static bool ir_block_living_lock(ir_block *self)
|
||||||
bool changed = false;
|
bool changed = false;
|
||||||
for (i = 0; i != vec_size(self->living); ++i)
|
for (i = 0; i != vec_size(self->living); ++i)
|
||||||
{
|
{
|
||||||
if (!self->living[i]->locked)
|
if (!self->living[i]->locked) {
|
||||||
|
self->living[i]->locked = true;
|
||||||
changed = true;
|
changed = true;
|
||||||
self->living[i]->locked = true;
|
}
|
||||||
}
|
}
|
||||||
return changed;
|
return changed;
|
||||||
}
|
}
|
||||||
|
@ -3802,7 +3803,9 @@ void ir_function_dump(ir_function *f, char *ind,
|
||||||
attr = "unique ";
|
attr = "unique ";
|
||||||
else if (v->locked)
|
else if (v->locked)
|
||||||
attr = "locked ";
|
attr = "locked ";
|
||||||
oprintf("%s\t%s: %s %s@%i ", ind, v->name, type_name[v->vtype], attr, (int)v->code.local);
|
oprintf("%s\t%s: %s %s%s@%i ", ind, v->name, type_name[v->vtype],
|
||||||
|
attr, (v->callparam ? "callparam " : ""),
|
||||||
|
(int)v->code.local);
|
||||||
for (l = 0; l < vec_size(v->life); ++l) {
|
for (l = 0; l < vec_size(v->life); ++l) {
|
||||||
oprintf("[%i,%i] ", v->life[l].start, v->life[l].end);
|
oprintf("[%i,%i] ", v->life[l].start, v->life[l].end);
|
||||||
}
|
}
|
||||||
|
@ -3834,7 +3837,9 @@ void ir_function_dump(ir_function *f, char *ind,
|
||||||
attr = "unique ";
|
attr = "unique ";
|
||||||
else if (v->locked)
|
else if (v->locked)
|
||||||
attr = "locked ";
|
attr = "locked ";
|
||||||
oprintf("%s\t%s: %s %s@%i ", ind, v->name, type_name[v->vtype], attr, (int)v->code.local);
|
oprintf("%s\t%s: %s %s%s@%i ", ind, v->name, type_name[v->vtype],
|
||||||
|
attr, (v->callparam ? "callparam " : ""),
|
||||||
|
(int)v->code.local);
|
||||||
for (l = 0; l < vec_size(v->life); ++l) {
|
for (l = 0; l < vec_size(v->life); ++l) {
|
||||||
oprintf("[%i,%i] ", v->life[l].start, v->life[l].end);
|
oprintf("[%i,%i] ", v->life[l].start, v->life[l].end);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue