mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-24 01:58:16 +02:00
jay/liveness: remove pointless bitset init
dup initializes it. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41688>
This commit is contained in:
parent
5da3b57605
commit
1b50d3eed2
1 changed files with 1 additions and 3 deletions
|
|
@ -69,10 +69,7 @@ jay_compute_liveness(jay_function *f)
|
|||
BITSET_WORD *uniform = BITSET_CALLOC(f->ssa_alloc);
|
||||
|
||||
jay_foreach_block(f, block) {
|
||||
u_sparse_bitset_free(&block->live_in);
|
||||
u_sparse_bitset_free(&block->live_out);
|
||||
|
||||
u_sparse_bitset_init(&block->live_in, f->ssa_alloc, block);
|
||||
u_sparse_bitset_init(&block->live_out, f->ssa_alloc, block);
|
||||
|
||||
jay_worklist_push_head(&worklist, block);
|
||||
|
|
@ -94,6 +91,7 @@ jay_compute_liveness(jay_function *f)
|
|||
* 1. Assume everything liveout from this block was live_in
|
||||
* 2. Clear live_in for anything defined in this block
|
||||
*/
|
||||
u_sparse_bitset_free(&block->live_in);
|
||||
u_sparse_bitset_dup(&block->live_in, &block->live_out);
|
||||
|
||||
jay_foreach_inst_in_block_rev(block, inst) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue