nir: Rename lower_locals_to_reg_intrinsics back
The short name is freed up. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24253>
This commit is contained in:

committed by
Marge Bot

parent
d2c94f9e71
commit
1466014184
@@ -166,7 +166,7 @@ files_libnir = files(
|
|||||||
'nir_lower_gs_intrinsics.c',
|
'nir_lower_gs_intrinsics.c',
|
||||||
'nir_lower_helper_writes.c',
|
'nir_lower_helper_writes.c',
|
||||||
'nir_lower_load_const_to_scalar.c',
|
'nir_lower_load_const_to_scalar.c',
|
||||||
'nir_lower_locals_to_reg_intrinsics.c',
|
'nir_lower_locals_to_regs.c',
|
||||||
'nir_lower_idiv.c',
|
'nir_lower_idiv.c',
|
||||||
'nir_lower_image.c',
|
'nir_lower_image.c',
|
||||||
'nir_lower_image_atomics_to_global.c',
|
'nir_lower_image_atomics_to_global.c',
|
||||||
|
@@ -4954,7 +4954,7 @@ bool nir_lower_indirect_derefs(nir_shader *shader, nir_variable_mode modes,
|
|||||||
bool nir_lower_indirect_var_derefs(nir_shader *shader,
|
bool nir_lower_indirect_var_derefs(nir_shader *shader,
|
||||||
const struct set *vars);
|
const struct set *vars);
|
||||||
|
|
||||||
bool nir_lower_locals_to_reg_intrinsics(nir_shader *shader, uint8_t bool_bitsize);
|
bool nir_lower_locals_to_regs(nir_shader *shader, uint8_t bool_bitsize);
|
||||||
|
|
||||||
void nir_lower_io_to_temporaries(nir_shader *shader,
|
void nir_lower_io_to_temporaries(nir_shader *shader,
|
||||||
nir_function_impl *entrypoint,
|
nir_function_impl *entrypoint,
|
||||||
|
@@ -309,7 +309,7 @@ impl(nir_function_impl *impl, uint8_t bool_bitsize)
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
nir_lower_locals_to_reg_intrinsics(nir_shader *shader, uint8_t bool_bitsize)
|
nir_lower_locals_to_regs(nir_shader *shader, uint8_t bool_bitsize)
|
||||||
{
|
{
|
||||||
bool progress = false;
|
bool progress = false;
|
||||||
|
|
@@ -89,9 +89,9 @@ ir3_context_init(struct ir3_compiler *compiler, struct ir3_shader *shader,
|
|||||||
*/
|
*/
|
||||||
bool progress = false;
|
bool progress = false;
|
||||||
bool needs_late_alg = false;
|
bool needs_late_alg = false;
|
||||||
NIR_PASS(progress, ctx->s, nir_lower_locals_to_reg_intrinsics, 1);
|
NIR_PASS(progress, ctx->s, nir_lower_locals_to_regs, 1);
|
||||||
|
|
||||||
/* we could need cleanup after lower_locals_to_reg_intrinsics */
|
/* we could need cleanup after lower_locals_to_regs */
|
||||||
while (progress) {
|
while (progress) {
|
||||||
progress = false;
|
progress = false;
|
||||||
NIR_PASS(progress, ctx->s, nir_opt_algebraic);
|
NIR_PASS(progress, ctx->s, nir_opt_algebraic);
|
||||||
@@ -101,7 +101,7 @@ ir3_context_init(struct ir3_compiler *compiler, struct ir3_shader *shader,
|
|||||||
|
|
||||||
/* We want to lower nir_op_imul as late as possible, to catch also
|
/* We want to lower nir_op_imul as late as possible, to catch also
|
||||||
* those generated by earlier passes (e.g,
|
* those generated by earlier passes (e.g,
|
||||||
* nir_lower_locals_to_reg_intrinsics). However, we want a final swing of a
|
* nir_lower_locals_to_regs). However, we want a final swing of a
|
||||||
* few passes to have a chance at optimizing the result.
|
* few passes to have a chance at optimizing the result.
|
||||||
*/
|
*/
|
||||||
progress = false;
|
progress = false;
|
||||||
|
@@ -2894,7 +2894,7 @@ bool lp_build_nir_llvm(struct lp_build_nir_context *bld_base,
|
|||||||
struct nir_function *func;
|
struct nir_function *func;
|
||||||
|
|
||||||
NIR_PASS_V(nir, nir_convert_from_ssa, true, true);
|
NIR_PASS_V(nir, nir_convert_from_ssa, true, true);
|
||||||
NIR_PASS_V(nir, nir_lower_locals_to_reg_intrinsics, 32);
|
NIR_PASS_V(nir, nir_lower_locals_to_regs, 32);
|
||||||
NIR_PASS_V(nir, nir_remove_dead_derefs);
|
NIR_PASS_V(nir, nir_remove_dead_derefs);
|
||||||
NIR_PASS_V(nir, nir_remove_dead_variables, nir_var_function_temp, NULL);
|
NIR_PASS_V(nir, nir_remove_dead_variables, nir_var_function_temp, NULL);
|
||||||
|
|
||||||
|
@@ -3977,7 +3977,7 @@ const void *nir_to_tgsi_options(struct nir_shader *s,
|
|||||||
|
|
||||||
/* locals_to_reg_intrinsics will leave dead derefs that are good to clean up.
|
/* locals_to_reg_intrinsics will leave dead derefs that are good to clean up.
|
||||||
*/
|
*/
|
||||||
NIR_PASS_V(s, nir_lower_locals_to_reg_intrinsics, 32);
|
NIR_PASS_V(s, nir_lower_locals_to_regs, 32);
|
||||||
NIR_PASS_V(s, nir_opt_dce);
|
NIR_PASS_V(s, nir_opt_dce);
|
||||||
|
|
||||||
/* See comment in ntt_get_alu_src for supported modifiers */
|
/* See comment in ntt_get_alu_src for supported modifiers */
|
||||||
|
@@ -934,7 +934,7 @@ r600_shader_from_nir(struct r600_context *rctx,
|
|||||||
|
|
||||||
NIR_PASS_V(sh, nir_lower_bool_to_int32);
|
NIR_PASS_V(sh, nir_lower_bool_to_int32);
|
||||||
|
|
||||||
NIR_PASS_V(sh, nir_lower_locals_to_reg_intrinsics, 32);
|
NIR_PASS_V(sh, nir_lower_locals_to_regs, 32);
|
||||||
NIR_PASS_V(sh, nir_convert_from_ssa, true, true);
|
NIR_PASS_V(sh, nir_convert_from_ssa, true, true);
|
||||||
NIR_PASS_V(sh, nir_opt_dce);
|
NIR_PASS_V(sh, nir_opt_dce);
|
||||||
|
|
||||||
|
@@ -1706,7 +1706,7 @@ brw_postprocess_nir(nir_shader *nir, const struct brw_compiler *compiler,
|
|||||||
OPT(nir_copy_prop);
|
OPT(nir_copy_prop);
|
||||||
OPT(nir_opt_dce);
|
OPT(nir_opt_dce);
|
||||||
|
|
||||||
OPT(nir_lower_locals_to_reg_intrinsics, 32);
|
OPT(nir_lower_locals_to_regs, 32);
|
||||||
|
|
||||||
if (unlikely(debug_enabled)) {
|
if (unlikely(debug_enabled)) {
|
||||||
/* Re-index SSA defs so we print more sensible numbers. */
|
/* Re-index SSA defs so we print more sensible numbers. */
|
||||||
|
Reference in New Issue
Block a user