Re: [Mesa-dev] [PATCH 2/4] glsl: Fix loop analysis of nested loops.

2013-11-29 Thread Paul Berry
On 28 November 2013 11:45, Chris Forbes wrote: > + /* The assignmnet to the variable in the loop must be unconditional > and > + * not inside a nested loop. > */ > > s/assignmnet/assignment/ > Fixed, thanks. ___ mesa-dev mailing list

Re: [Mesa-dev] [PATCH 2/4] glsl: Fix loop analysis of nested loops.

2013-11-28 Thread Chris Forbes
+ /* The assignmnet to the variable in the loop must be unconditional and + * not inside a nested loop. */ s/assignmnet/assignment/ ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/

[Mesa-dev] [PATCH 2/4] glsl: Fix loop analysis of nested loops.

2013-11-28 Thread Paul Berry
Previously, when visiting a variable dereference, loop analysis would only consider its effect on the innermost enclosing loop. As a result, when encountering a loop like this: for (int i = 0; i < 3; i++) { for (int j = 0; j < 3; j++) { ... i = 2; } } it would