}
/* nothing found? append */
if (i == self->life_count) {
+ ir_life_entry_t e;
if (life && life->end+1 == s)
{
/* previous life range can be merged in */
}
if (life && life->end >= s)
return false;
- ir_life_entry_t e;
e.start = e.end = s;
if (!ir_value_life_add(self, e))
return false; /* failing */
return false;
}
self->final = true;
- //in = ir_instr_new(self, (v->vtype == TYPE_STRING ? INSTR_IF_S : INSTR_IF_F));
+ /*in = ir_instr_new(self, (v->vtype == TYPE_STRING ? INSTR_IF_S : INSTR_IF_F));*/
in = ir_instr_new(self, VINSTR_COND);
if (!in)
return false;
const char *label, int opcode,
ir_value *left, ir_value *right)
{
+ ir_value *out = NULL;
+ ir_instr *in = NULL;
+
int ot = TYPE_VOID;
switch (opcode) {
case INSTR_ADD_F:
break;
#endif
default:
- // ranges:
+ /* ranges: */
/* boolean operations result in floats */
if (opcode >= INSTR_EQ_F && opcode <= INSTR_GT)
ot = TYPE_FLOAT;
return NULL;
}
- ir_value *out = ir_value_out(self->owner, label, store_local, ot);
+ out = ir_value_out(self->owner, label, store_local, ot);
if (!out)
return NULL;
- ir_instr *in = ir_instr_new(self, opcode);
+ in = ir_instr_new(self, opcode);
if (!in) {
ir_value_delete(out);
return NULL;
}
/* (A) */
tempbool = ir_block_living_add_instr(self, instr->eid);
- //fprintf(stderr, "living added values\n");
+ /*fprintf(stderr, "living added values\n");*/
*changed = *changed || tempbool;
/* new reads: */