Re: [Mesa-dev] Partial loop unrolling support v2

2018-12-03 Thread Timothy Arceri
Ping! On 20/11/18 7:14 pm, Timothy Arceri wrote: This series add support for partial loop unrolling for loops with an unknown trip count. The new partial_unroll function allows the caller to specifiy how may times the loop should be unrolled and then the loop is inserted in the innermost continu

[Mesa-dev] Partial loop unrolling support v2

2018-11-20 Thread Timothy Arceri
This series add support for partial loop unrolling for loops with an unknown trip count. The new partial_unroll function allows the caller to specifiy how may times the loop should be unrolled and then the loop is inserted in the innermost continue branch of the unrolled loop. For now we only do p

Re: [Mesa-dev] Partial loop unrolling support

2018-11-19 Thread Jason Ekstrand
On Mon, Nov 19, 2018 at 5:31 PM Timothy Arceri wrote: > On 20/11/18 2:46 am, Jason Ekstrand wrote: > > I also saw a case last week where the induction variable is <= > > imax(thing, 4) and it'd be nice to unroll those too. > > That is an interesting one. It means we could do a simple unroll for t

Re: [Mesa-dev] Partial loop unrolling support

2018-11-19 Thread Timothy Arceri
On 20/11/18 2:46 am, Jason Ekstrand wrote: I also saw a case last week where the induction variable is <= imax(thing, 4) and it'd be nice to unroll those too. That is an interesting one. It means we could do a simple unroll for the first 4 iterations i.e no if statements required, which is a b

Re: [Mesa-dev] Partial loop unrolling support

2018-11-19 Thread Jason Ekstrand
I also saw a case last week where the induction variable is <= imax(thing, 4) and it'd be nice to unroll those too. --Jason On Mon, Nov 19, 2018 at 12:18 AM Timothy Arceri wrote: > This series add support for partial loop unrolling for loops with an > unknown trip count. The new partial_unroll

Re: [Mesa-dev] Partial loop unrolling support

2018-11-19 Thread Timothy Arceri
On 19/11/18 5:18 pm, Timothy Arceri wrote> This series add support for partial loop unrolling for loops with an unknown trip count. The new partial_unroll function allows the caller to specifiy how may times the loop should be unrolled and then the loop is inserted in the innermost continue branc

[Mesa-dev] Partial loop unrolling support

2018-11-18 Thread Timothy Arceri
This series add support for partial loop unrolling for loops with an unknown trip count. The new partial_unroll function allows the caller to specifiy how may times the loop should be unrolled and then the loop is inserted in the innermost continue branch of the unrolled loop. For now we only do p