summaryrefslogtreecommitdiffstats
path: root/src/glsl/loop_controls.cpp
diff options
context:
space:
mode:
authorPaul Berry <stereotype441@gmail.com>2013-11-29 00:52:11 -0800
committerPaul Berry <stereotype441@gmail.com>2013-12-09 10:55:09 -0800
commit088494aa032bf32db8b67f1fb07e5797603a473d (patch)
tree75118fb62d60fa288e77d0e14552e929e51de4b0 /src/glsl/loop_controls.cpp
parent7ea3baa64da061f86a50c41081a26e0c2859e99c (diff)
downloadexternal_mesa3d-088494aa032bf32db8b67f1fb07e5797603a473d.zip
external_mesa3d-088494aa032bf32db8b67f1fb07e5797603a473d.tar.gz
external_mesa3d-088494aa032bf32db8b67f1fb07e5797603a473d.tar.bz2
glsl/loops: Get rid of lower_bounded_loops and ir_loop::normative_bound.
Now that loop_controls no longer creates normatively bound loops, there is no need for ir_loop::normative_bound or the lower_bounded_loops pass. Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Diffstat (limited to 'src/glsl/loop_controls.cpp')
-rw-r--r--src/glsl/loop_controls.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/glsl/loop_controls.cpp b/src/glsl/loop_controls.cpp
index 385c203..3db06ad 100644
--- a/src/glsl/loop_controls.cpp
+++ b/src/glsl/loop_controls.cpp
@@ -193,13 +193,6 @@ loop_control_visitor::visit_leave(ir_loop *ir)
this->progress = true;
return visit_continue;
}
-
- /* If the limiting terminator has a lower iteration count than the
- * normative loop bound (if any), then the loop doesn't need a normative
- * bound anymore.
- */
- if (ir->normative_bound >= 0 && iterations < ir->normative_bound)
- ir->normative_bound = -1;
}
/* Remove the conditional break statements associated with all terminators
@@ -215,7 +208,7 @@ loop_control_visitor::visit_leave(ir_loop *ir)
if (t->iterations < 0)
continue;
- if (ir->normative_bound >= 0 || t != ls->limiting_terminator) {
+ if (t != ls->limiting_terminator) {
t->ir->remove();
assert(ls->num_loop_jumps > 0);