intel/compiler: move predicated_break out of backend loop
This has no impact on the generated shaders, but does have a small (positive) impact on the amount of time spent in shader compilation. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29126>
This commit is contained in:
@@ -65,7 +65,6 @@ brw_fs_optimize(fs_visitor &s)
|
||||
OPT(brw_fs_opt_cse_defs);
|
||||
if (!OPT(brw_fs_opt_copy_propagation_defs))
|
||||
OPT(brw_fs_opt_copy_propagation);
|
||||
OPT(brw_fs_opt_predicated_break);
|
||||
OPT(brw_fs_opt_cmod_propagation);
|
||||
OPT(brw_fs_opt_dead_code_eliminate);
|
||||
OPT(brw_fs_opt_peephole_sel);
|
||||
@@ -79,6 +78,8 @@ brw_fs_optimize(fs_visitor &s)
|
||||
progress = false;
|
||||
pass_num = 0;
|
||||
|
||||
OPT(brw_fs_opt_predicated_break);
|
||||
|
||||
if (OPT(brw_fs_lower_pack)) {
|
||||
OPT(brw_fs_opt_register_coalesce);
|
||||
OPT(brw_fs_opt_dead_code_eliminate);
|
||||
|
||||
Reference in New Issue
Block a user