Skip to content

nir: rename nir_src_is_dynamically_uniform to nir_src_is_always_uniform

As this function doesn't check for any control-flow
dependence, it only returns true for statically
(or globally) uniform values.
The same holds true for is_binding_dynamically_uniform()
in nir_opt_gcm().
Rename to better reflect that property.

In order to circumvent the limits of this function, I'd recommend to change nir_opt_gcm to use LCSSA and the divergence analysis.

Edited by Daniel Schürmann

Merge request reports