mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 04:58:05 +02:00
aco/opt_value_numbering: remove handling of block_kind_continue
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40628>
This commit is contained in:
parent
a8c4b9f100
commit
7f0709cff5
1 changed files with 2 additions and 3 deletions
|
|
@ -474,8 +474,7 @@ value_numbering(Program* program)
|
|||
if (block.kind & block_kind_merge) {
|
||||
ctx.exec_id--;
|
||||
} else if (block.kind & block_kind_loop_exit) {
|
||||
ctx.exec_id -= program->blocks[loop_headers.back()].linear_preds.size();
|
||||
ctx.exec_id -= block.linear_preds.size();
|
||||
ctx.exec_id -= (block.linear_preds.size() + 1);
|
||||
loop_headers.pop_back();
|
||||
}
|
||||
|
||||
|
|
@ -491,7 +490,7 @@ value_numbering(Program* program)
|
|||
|
||||
/* increment exec_id when entering nested control flow */
|
||||
if (block.kind & block_kind_branch || block.kind & block_kind_loop_preheader ||
|
||||
block.kind & block_kind_break || block.kind & block_kind_continue)
|
||||
block.kind & block_kind_break)
|
||||
ctx.exec_id++;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue