mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 03:08:05 +02:00
intel/brw: Pull redundant_halt out of fs_visitor
And call it "remove redundant halts". 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
96c4aa8545
commit
d849c2ecff
2 changed files with 5 additions and 5 deletions
|
|
@ -3124,14 +3124,14 @@ fs_visitor::opt_split_sends()
|
|||
* halt-target
|
||||
*/
|
||||
bool
|
||||
fs_visitor::opt_redundant_halt()
|
||||
brw_fs_opt_remove_redundant_halts(fs_visitor &s)
|
||||
{
|
||||
bool progress = false;
|
||||
|
||||
unsigned halt_count = 0;
|
||||
fs_inst *halt_target = NULL;
|
||||
bblock_t *halt_target_block = NULL;
|
||||
foreach_block_and_inst(block, fs_inst, inst, cfg) {
|
||||
foreach_block_and_inst(block, fs_inst, inst, s.cfg) {
|
||||
if (inst->opcode == BRW_OPCODE_HALT)
|
||||
halt_count++;
|
||||
|
||||
|
|
@ -3162,7 +3162,7 @@ fs_visitor::opt_redundant_halt()
|
|||
}
|
||||
|
||||
if (progress)
|
||||
invalidate_analysis(DEPENDENCY_INSTRUCTIONS);
|
||||
s.invalidate_analysis(DEPENDENCY_INSTRUCTIONS);
|
||||
|
||||
return progress;
|
||||
}
|
||||
|
|
@ -5733,7 +5733,7 @@ fs_visitor::optimize()
|
|||
OPT(brw_fs_opt_peephole_sel, *this);
|
||||
}
|
||||
|
||||
OPT(opt_redundant_halt);
|
||||
OPT(brw_fs_opt_remove_redundant_halts, *this);
|
||||
|
||||
if (OPT(lower_load_payload)) {
|
||||
OPT(split_virtual_grfs);
|
||||
|
|
|
|||
|
|
@ -268,7 +268,6 @@ public:
|
|||
#endif
|
||||
|
||||
bool opt_algebraic();
|
||||
bool opt_redundant_halt();
|
||||
|
||||
bool opt_split_sends();
|
||||
bool register_coalesce();
|
||||
|
|
@ -624,6 +623,7 @@ bool brw_fs_opt_copy_propagation(fs_visitor &s);
|
|||
bool brw_fs_opt_cse(fs_visitor &s);
|
||||
bool brw_fs_opt_dead_code_eliminate(fs_visitor &s);
|
||||
bool brw_fs_opt_peephole_sel(fs_visitor &s);
|
||||
bool brw_fs_opt_remove_redundant_halts(fs_visitor &s);
|
||||
bool brw_fs_opt_saturate_propagation(fs_visitor &s);
|
||||
|
||||
#endif /* BRW_FS_H */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue