diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2010-08-27 15:41:20 -0700 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2010-09-03 11:55:22 -0700 |
commit | 3bcfafcf0320ee5407716ff67062e80d162760d4 (patch) | |
tree | 9e3b0591373f04c68da6d39dbc819257a9c96344 /src/glsl/loop_controls.cpp | |
parent | 351525d534268b08c090f9ce42a67e9329a969ae (diff) | |
download | external_mesa3d-3bcfafcf0320ee5407716ff67062e80d162760d4.zip external_mesa3d-3bcfafcf0320ee5407716ff67062e80d162760d4.tar.gz external_mesa3d-3bcfafcf0320ee5407716ff67062e80d162760d4.tar.bz2 |
glsl2: Track the number of ir_loop_jump instructions that are in a loop
Diffstat (limited to 'src/glsl/loop_controls.cpp')
-rw-r--r-- | src/glsl/loop_controls.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/glsl/loop_controls.cpp b/src/glsl/loop_controls.cpp index 9eb1a89..f2e1ecb 100644 --- a/src/glsl/loop_controls.cpp +++ b/src/glsl/loop_controls.cpp @@ -253,6 +253,10 @@ loop_control_visitor::visit_leave(ir_loop *ir) * satisfied. */ if_stmt->remove(); + + assert(ls->num_loop_jumps > 0); + ls->num_loop_jumps--; + this->progress = true; } |