Re: [Mesa-dev] [RFC] nir: Improve induction variables detection

2017-03-06 Thread tournier.elie
Any comments, tips before I go to deep in the code? On 24 February 2017 at 12:17, Elie Tournier wrote: > The actual code detect only basic induction variables (i = i +/- c). > I'm working on improve the detection in order to reconize derived induction > varibles (j = c1 * i +/- c2). > I obtain t

[Mesa-dev] [RFC] nir: Improve induction variables detection

2017-02-24 Thread Elie Tournier
The actual code detect only basic induction variables (i = i +/- c). I'm working on improve the detection in order to reconize derived induction varibles (j = c1 * i +/- c2). I obtain the code below. I'm not sure about the nir_derived_induction_var. Should I replace "nir_loop_variable *def_outsid