If loop iterator is incremented with something other than regular addition, it would be more error prone to calculate the number of iterations theoretically. What we can do instead, is try to emulate the loop, and determine the number of iterations empirically.
These operations are covered:
Also add unit tests for loop unrollment.
No shaderdb changes.
Signed-off-by: Yevhenii Kolesnikov email@example.com
This is a rework of !1935 (closed)