microsoft/clc: Split struct copies before vars_to_ssa in pre-inline optimizations

Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29896>
(cherry picked from commit f05b7225a3)
This commit is contained in:
Jesse Natalie 2024-06-28 10:26:26 -07:00 committed by Eric Engestrom
parent 5e13e71a2a
commit 28d55e0baa
2 changed files with 3 additions and 1 deletions

View file

@ -674,7 +674,7 @@
"description": "microsoft/clc: Split struct copies before vars_to_ssa in pre-inline optimizations",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -818,6 +818,8 @@ clc_spirv_to_dxil(struct clc_libclc *lib,
NIR_PASS(progress, nir, nir_opt_undef);
NIR_PASS(progress, nir, nir_opt_constant_folding);
NIR_PASS(progress, nir, nir_opt_cse);
NIR_PASS(progress, nir, nir_split_var_copies);
NIR_PASS(progress, nir, nir_lower_var_copies);
NIR_PASS(progress, nir, nir_lower_vars_to_ssa);
NIR_PASS(progress, nir, nir_opt_algebraic);
} while (progress);