mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 03:30:10 +01:00
aco/value_numbering: clear hashmap between disconnected CFGs
There is no dominance-relationship between two disconnected CFGs, thus no CSE is possible. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20853>
This commit is contained in:
parent
678aef9f06
commit
fb99bc5f30
1 changed files with 3 additions and 0 deletions
|
|
@ -489,6 +489,9 @@ value_numbering(Program* program)
|
|||
loop_headers.pop_back();
|
||||
}
|
||||
|
||||
if (block.logical_idom == (int)block.index)
|
||||
ctx.expr_values.clear();
|
||||
|
||||
if (block.logical_idom != -1)
|
||||
process_block(ctx, block);
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue