lima/ppir: introduce liveness internal live set
[mesa.git] / src / gallium / drivers / lima / ir / pp / liveness.c
index ccc01a3545f6b1aa4b0e15b162067447bfdacb0f..b17564b089dbbfd0949130613996a2501889a311 100644 (file)
@@ -129,11 +129,10 @@ ppir_liveness_instr_srcs(ppir_compiler *comp, ppir_instr *instr)
 
          /* 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;
          }
 
@@ -199,8 +198,8 @@ ppir_liveness_instr_dest(ppir_compiler *comp, ppir_instr *instr)
        * 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;
       }