aco: Call dominator_tree before lower_phis.

This just makes it possible to use the dominator
tree information during phi lowering.

No Fossil DB changes on GFX11.

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21493>
This commit is contained in:
Timur Kristóf 2023-02-21 14:33:58 +01:00 committed by Marge Bot
parent 0eb7c49c7f
commit 81b4806d64

View file

@ -121,9 +121,8 @@ aco_postprocess_shader(const struct aco_compiler_options* options,
aco::live live_vars; aco::live live_vars;
if (!info->is_trap_handler_shader) { if (!info->is_trap_handler_shader) {
/* Phi lowering */
aco::lower_phis(program.get());
aco::dominator_tree(program.get()); aco::dominator_tree(program.get());
aco::lower_phis(program.get());
validate(program.get()); validate(program.get());
/* Optimization */ /* Optimization */