/* if some other op on this same instruction is writing,
* we just need to reserve a register for this particular
- * instruction. Add the register to live_out to make that
- * interference happen without propagating its liveness. */
+ * instruction. */
if (src->node && src->node->instr == instr) {
- instr->live_out[reg->regalloc_index].reg = reg;
- _mesa_set_add(instr->live_out_set, &instr->live_out[reg->regalloc_index]);
+ instr->live_internal[reg->regalloc_index].reg = reg;
+ _mesa_set_add(instr->live_internal_set, &instr->live_internal[reg->regalloc_index]);
continue;
}
* either dead code or a bug. For now, assign an interference to it to
* ensure it doesn't get assigned a live register and overwrites it. */
if (!live) {
- instr->live_out[reg->regalloc_index].reg = reg;
- _mesa_set_add(instr->live_out_set, &instr->live_out[reg->regalloc_index]);
+ instr->live_internal[reg->regalloc_index].reg = reg;
+ _mesa_set_add(instr->live_internal_set, &instr->live_internal[reg->regalloc_index]);
continue;
}