nir: Delete unused is_var_constant() helper
authorKristian H. Kristensen <hoegsberg@google.com>
Mon, 3 Feb 2020 19:47:12 +0000 (11:47 -0800)
committerMarge Bot <eric+marge@anholt.net>
Tue, 4 Feb 2020 06:03:52 +0000 (06:03 +0000)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3686>

src/compiler/nir/nir_loop_analyze.c

index c2473421215e4a8cedce85a0647b189df4f9d3ba..c326158eda9f642c0929b5769c05c2117909c744 100644 (file)
@@ -199,12 +199,6 @@ is_var_alu(nir_loop_variable *var)
    return var->def->parent_instr->type == nir_instr_type_alu;
 }
 
-static inline bool
-is_var_constant(nir_loop_variable *var)
-{
-   return var->def->parent_instr->type == nir_instr_type_load_const;
-}
-
 static inline bool
 is_var_phi(nir_loop_variable *var)
 {