Skip to content

nir/loop_analyze: remove cost of redundant selects

If we know that a select will be eliminated once the loop is unrolled than we don't need to count the instruction towards the cost of the loop.

This change helps 2 loops unroll in xcom enemy unknown shader that is loaded full of these redundant selects.

Merge request reports