zink: run more int64 passes during optimization loop if int64 isn't available

Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16669>
This commit is contained in:
Mike Blumenkrantz 2022-05-19 15:38:26 -04:00 committed by Marge Bot
parent 7c75ce6204
commit b59d67431d
1 changed files with 3 additions and 0 deletions

View File

@ -470,11 +470,14 @@ optimize_nir(struct nir_shader *s)
bool progress;
do {
progress = false;
if (s->options->lower_int64_options)
NIR_PASS_V(s, nir_lower_int64);
NIR_PASS_V(s, nir_lower_vars_to_ssa);
NIR_PASS(progress, s, nir_lower_alu_to_scalar, filter_pack_instr, NULL);
NIR_PASS(progress, s, nir_copy_prop);
NIR_PASS(progress, s, nir_opt_remove_phis);
if (s->options->lower_int64_options) {
NIR_PASS(progress, s, nir_lower_64bit_phis);
NIR_PASS(progress, s, nir_lower_alu_to_scalar, filter_64_bit_instr, NULL);
}
NIR_PASS(progress, s, nir_opt_dce);