mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 14:38:06 +02:00
pan/midgard: Implement per-byte liveness tracking
Now that we have notion of byte masks, liveness tracking can be updated to reflect this extra granularity without loss of correctness. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
This commit is contained in:
parent
43fd730fc4
commit
d1d3411ba5
1 changed files with 2 additions and 3 deletions
|
|
@ -60,14 +60,13 @@ mir_liveness_ins_update(uint16_t *live, midgard_instruction *ins, unsigned max)
|
|||
{
|
||||
/* live_in[s] = GEN[s] + (live_out[s] - KILL[s]) */
|
||||
|
||||
liveness_kill(live, ins->dest, max, ins->mask);
|
||||
liveness_kill(live, ins->dest, max, mir_bytemask(ins));
|
||||
|
||||
mir_foreach_src(ins, src) {
|
||||
unsigned node = ins->src[src];
|
||||
unsigned bytemask = mir_bytemask_of_read_components(ins, node);
|
||||
unsigned mask = mir_from_bytemask(bytemask, midgard_reg_mode_32);
|
||||
|
||||
liveness_gen(live, node, max, mask);
|
||||
liveness_gen(live, node, max, bytemask);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue