glsl2: Track the number of ir_loop_jump instructions that are in a loop

This commit is contained in:
Ian Romanick
2010-08-27 15:41:20 -07:00
parent 351525d534
commit 3bcfafcf03
3 changed files with 27 additions and 0 deletions
+4
View File
@@ -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;
}