nir/lower_vars_to_ssa: return early if there is no local variables to lower
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38367>
This commit is contained in:
committed by
Marge Bot
parent
18b99338b7
commit
11fb6c30b3
@@ -793,6 +793,10 @@ rename_variables(struct lower_variables_state *state)
|
||||
static bool
|
||||
nir_lower_vars_to_ssa_impl(nir_function_impl *impl)
|
||||
{
|
||||
/* Nothing to do... */
|
||||
if (exec_list_is_empty(&impl->locals))
|
||||
return nir_no_progress(impl);
|
||||
|
||||
struct lower_variables_state state;
|
||||
|
||||
state.shader = impl->function->shader;
|
||||
|
||||
Reference in New Issue
Block a user