mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 07:00:12 +01:00
glsl/loops: Remove unused fields iv_scale and biv from loop_variable class.
These fields were part of some planned optimizations that never materialized. Remove them for now to simplify things; if we ever get round to adding the optimizations that would require them, we can always re-introduce them. Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
parent
e00b93a1f7
commit
115fd75ab0
2 changed files with 4 additions and 12 deletions
|
|
@ -389,8 +389,6 @@ loop_analysis::visit_leave(ir_loop *ir)
|
||||||
ir_rvalue *const inc =
|
ir_rvalue *const inc =
|
||||||
get_basic_induction_increment(lv->first_assignment, ls->var_hash);
|
get_basic_induction_increment(lv->first_assignment, ls->var_hash);
|
||||||
if (inc != NULL) {
|
if (inc != NULL) {
|
||||||
lv->iv_scale = NULL;
|
|
||||||
lv->biv = lv->var;
|
|
||||||
lv->increment = inc;
|
lv->increment = inc;
|
||||||
|
|
||||||
lv->remove();
|
lv->remove();
|
||||||
|
|
|
||||||
|
|
@ -179,20 +179,14 @@ public:
|
||||||
unsigned num_assignments;
|
unsigned num_assignments;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Increment values for loop induction variables
|
* Increment value for a loop induction variable
|
||||||
*
|
*
|
||||||
* Loop induction variables have a single increment of the form
|
* If this is a loop induction variable, the amount by which the variable
|
||||||
* \c b * \c biv + \c c, where \c b and \c c are loop constants and \c i
|
* is incremented on each iteration through the loop.
|
||||||
* is a basic loop induction variable.
|
|
||||||
*
|
*
|
||||||
* If \c iv_scale is \c NULL, 1 is used. If \c biv is the same as \c var,
|
* If this is not a loop induction variable, NULL.
|
||||||
* then \c var is a basic loop induction variable.
|
|
||||||
*/
|
*/
|
||||||
/*@{*/
|
|
||||||
ir_rvalue *iv_scale;
|
|
||||||
ir_variable *biv;
|
|
||||||
ir_rvalue *increment;
|
ir_rvalue *increment;
|
||||||
/*@}*/
|
|
||||||
|
|
||||||
|
|
||||||
inline bool is_loop_constant() const
|
inline bool is_loop_constant() const
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue