Skip to content

nir: Fix read depth for predecessors

Michael Skorokhodov requested to merge GL/mesa:fix/nir_trivial_continues2 into main

In some non-trivial cases (the amber script file in the merge request description) phi instruction has more than 32 elements in predecessors tree and that isn't recursion, just large tree. In that case, phis not fully converted into a register or mov, but successfully removed.

The fix removes the counter and adds container of visited blocks.

Closes: #3690 (closed)
Cc: mesa-stable

Signed-off-by: Mykhailo Skorokhodov mykhailo.skorokhodov@globallogic.com

big.amber

Edited by Michael Skorokhodov

Merge request reports