mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 05:58:05 +02:00
i965/vec4: Add invalidate_live_intervals method.
Reviewed-by: Paul Berry <stereotype441@gmail.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
c4464c9eea
commit
1c263f8f4f
6 changed files with 14 additions and 7 deletions
|
|
@ -1446,5 +1446,5 @@ vec4_visitor::opt_schedule_instructions()
|
|||
printf("vec4 estimated execution time: %d cycles\n", sched.time);
|
||||
}
|
||||
|
||||
this->live_intervals_valid = false;
|
||||
invalidate_live_intervals();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -343,7 +343,7 @@ vec4_visitor::dead_code_eliminate()
|
|||
}
|
||||
|
||||
if (progress)
|
||||
live_intervals_valid = false;
|
||||
invalidate_live_intervals();
|
||||
|
||||
return progress;
|
||||
}
|
||||
|
|
@ -554,7 +554,7 @@ vec4_visitor::opt_algebraic()
|
|||
}
|
||||
|
||||
if (progress)
|
||||
this->live_intervals_valid = false;
|
||||
invalidate_live_intervals();
|
||||
|
||||
return progress;
|
||||
}
|
||||
|
|
@ -1017,7 +1017,7 @@ vec4_visitor::opt_register_coalesce()
|
|||
}
|
||||
|
||||
if (progress)
|
||||
live_intervals_valid = false;
|
||||
invalidate_live_intervals();
|
||||
|
||||
return progress;
|
||||
}
|
||||
|
|
@ -1100,7 +1100,7 @@ vec4_visitor::split_virtual_grfs()
|
|||
}
|
||||
}
|
||||
}
|
||||
this->live_intervals_valid = false;
|
||||
invalidate_live_intervals();
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
|
|
@ -352,6 +352,7 @@ public:
|
|||
void split_uniform_registers();
|
||||
void pack_uniform_registers();
|
||||
void calculate_live_intervals();
|
||||
void invalidate_live_intervals();
|
||||
void split_virtual_grfs();
|
||||
bool dead_code_eliminate();
|
||||
bool virtual_grf_interferes(int a, int b);
|
||||
|
|
|
|||
|
|
@ -362,7 +362,7 @@ vec4_visitor::opt_copy_propagation()
|
|||
}
|
||||
|
||||
if (progress)
|
||||
live_intervals_valid = false;
|
||||
invalidate_live_intervals();
|
||||
|
||||
return progress;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -266,6 +266,12 @@ vec4_visitor::calculate_live_intervals()
|
|||
this->live_intervals_valid = true;
|
||||
}
|
||||
|
||||
void
|
||||
vec4_visitor::invalidate_live_intervals()
|
||||
{
|
||||
live_intervals_valid = false;
|
||||
}
|
||||
|
||||
bool
|
||||
vec4_visitor::virtual_grf_interferes(int a, int b)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -359,7 +359,7 @@ vec4_visitor::spill_reg(int spill_reg_nr)
|
|||
}
|
||||
}
|
||||
|
||||
this->live_intervals_valid = false;
|
||||
invalidate_live_intervals();
|
||||
}
|
||||
|
||||
} /* namespace brw */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue