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:
@@ -121,9 +121,8 @@ aco_postprocess_shader(const struct aco_compiler_options* options,
|
||||
|
||||
aco::live live_vars;
|
||||
if (!info->is_trap_handler_shader) {
|
||||
/* Phi lowering */
|
||||
aco::lower_phis(program.get());
|
||||
aco::dominator_tree(program.get());
|
||||
aco::lower_phis(program.get());
|
||||
validate(program.get());
|
||||
|
||||
/* Optimization */
|
||||
|
||||
Reference in New Issue
Block a user