mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 17:50:11 +01:00
intel/brw: Pull opt_cmod_propagation out of fs_visitor
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26887>
This commit is contained in:
parent
6a3329a6c4
commit
dc33a8fb06
4 changed files with 8 additions and 8 deletions
|
|
@ -5681,7 +5681,7 @@ fs_visitor::optimize()
|
|||
OPT(opt_cse);
|
||||
OPT(brw_fs_opt_copy_propagation, *this);
|
||||
OPT(opt_predicated_break, this);
|
||||
OPT(opt_cmod_propagation);
|
||||
OPT(brw_fs_opt_cmod_propagation, *this);
|
||||
OPT(dead_code_eliminate);
|
||||
OPT(opt_peephole_sel);
|
||||
OPT(dead_control_flow_eliminate, this);
|
||||
|
|
|
|||
|
|
@ -306,7 +306,6 @@ public:
|
|||
void emit_interpolation_setup_gfx6();
|
||||
bool opt_peephole_sel();
|
||||
bool opt_saturate_propagation();
|
||||
bool opt_cmod_propagation();
|
||||
bool opt_zero_samples();
|
||||
|
||||
void set_tcs_invocation_id();
|
||||
|
|
@ -625,6 +624,7 @@ bool brw_lower_dpas(fs_visitor &v);
|
|||
|
||||
void nir_to_brw(fs_visitor *s);
|
||||
|
||||
bool brw_fs_opt_cmod_propagation(fs_visitor &s);
|
||||
bool brw_fs_opt_copy_propagation(fs_visitor &s);
|
||||
|
||||
#endif /* BRW_FS_H */
|
||||
|
|
|
|||
|
|
@ -550,18 +550,18 @@ opt_cmod_propagation_local(const intel_device_info *devinfo, bblock_t *block)
|
|||
}
|
||||
|
||||
bool
|
||||
fs_visitor::opt_cmod_propagation()
|
||||
brw_fs_opt_cmod_propagation(fs_visitor &s)
|
||||
{
|
||||
bool progress = false;
|
||||
|
||||
foreach_block_reverse(block, cfg) {
|
||||
progress = opt_cmod_propagation_local(devinfo, block) || progress;
|
||||
foreach_block_reverse(block, s.cfg) {
|
||||
progress = opt_cmod_propagation_local(s.devinfo, block) || progress;
|
||||
}
|
||||
|
||||
if (progress) {
|
||||
cfg->adjust_block_ips();
|
||||
s.cfg->adjust_block_ips();
|
||||
|
||||
invalidate_analysis(DEPENDENCY_INSTRUCTIONS);
|
||||
s.invalidate_analysis(DEPENDENCY_INSTRUCTIONS);
|
||||
}
|
||||
|
||||
return progress;
|
||||
|
|
|
|||
|
|
@ -118,7 +118,7 @@ cmod_propagation(fs_visitor *v)
|
|||
v->cfg->dump();
|
||||
}
|
||||
|
||||
bool ret = v->opt_cmod_propagation();
|
||||
bool ret = brw_fs_opt_cmod_propagation(*v);
|
||||
|
||||
if (print) {
|
||||
fprintf(stderr, "\n= After =\n");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue