mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 11:18:08 +02:00
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:
parent
cfc4067b0e
commit
8d9155e34d
1 changed files with 2 additions and 5 deletions
|
|
@ -87,12 +87,11 @@ propagate_sat(brw_inst *inst, brw_inst *scan_inst)
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
opt_saturate_propagation_local(brw_shader &s,
|
opt_saturate_propagation_local(brw_shader &s,
|
||||||
const brw_ip_ranges &ips,
|
|
||||||
bblock_t *block)
|
bblock_t *block)
|
||||||
{
|
{
|
||||||
bool progress = false;
|
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 ||
|
if (inst->opcode != BRW_OPCODE_MOV ||
|
||||||
!inst->saturate ||
|
!inst->saturate ||
|
||||||
inst->dst.file != VGRF ||
|
inst->dst.file != VGRF ||
|
||||||
|
|
@ -133,10 +132,8 @@ brw_opt_saturate_propagation(brw_shader &s)
|
||||||
{
|
{
|
||||||
bool progress = false;
|
bool progress = false;
|
||||||
|
|
||||||
const brw_ip_ranges &ips = s.ip_ranges_analysis.require();
|
|
||||||
|
|
||||||
foreach_block (block, s.cfg) {
|
foreach_block (block, s.cfg) {
|
||||||
progress = opt_saturate_propagation_local(s, ips, block) || progress;
|
progress = opt_saturate_propagation_local(s, block) || progress;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (progress)
|
if (progress)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue