brw: Clean up saturate propagation after non-defs version removal

Remove now unused analysis and no need to walk blocks in reverse
after the non-defs version of the pass was removed.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34253>
This commit is contained in:
Caio Oliveira 2025-03-13 15:48:37 -07:00 committed by Marge Bot
parent cfc4067b0e
commit 8d9155e34d

View file

@ -87,12 +87,11 @@ propagate_sat(brw_inst *inst, brw_inst *scan_inst)
static bool
opt_saturate_propagation_local(brw_shader &s,
const brw_ip_ranges &ips,
bblock_t *block)
{
bool progress = false;
foreach_inst_in_block_reverse(brw_inst, inst, block) {
foreach_inst_in_block(brw_inst, inst, block) {
if (inst->opcode != BRW_OPCODE_MOV ||
!inst->saturate ||
inst->dst.file != VGRF ||
@ -133,10 +132,8 @@ brw_opt_saturate_propagation(brw_shader &s)
{
bool progress = false;
const brw_ip_ranges &ips = s.ip_ranges_analysis.require();
foreach_block (block, s.cfg) {
progress = opt_saturate_propagation_local(s, ips, block) || progress;
progress = opt_saturate_propagation_local(s, block) || progress;
}
if (progress)