summaryrefslogtreecommitdiffstats
path: root/src/glsl/loop_analysis.h
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2010-08-27 15:41:20 -0700
committerIan Romanick <[email protected]>2010-09-03 11:55:22 -0700
commit3bcfafcf0320ee5407716ff67062e80d162760d4 (patch)
tree9e3b0591373f04c68da6d39dbc819257a9c96344 /src/glsl/loop_analysis.h
parent351525d534268b08c090f9ce42a67e9329a969ae (diff)
glsl2: Track the number of ir_loop_jump instructions that are in a loop
Diffstat (limited to 'src/glsl/loop_analysis.h')
-rw-r--r--src/glsl/loop_analysis.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/glsl/loop_analysis.h b/src/glsl/loop_analysis.h
index b7c05149438..f5c5a04be81 100644
--- a/src/glsl/loop_analysis.h
+++ b/src/glsl/loop_analysis.h
@@ -104,8 +104,14 @@ public:
*/
hash_table *var_hash;
+ /**
+ * Number of ir_loop_jump instructions that operate on this loop
+ */
+ unsigned num_loop_jumps;
+
loop_variable_state()
{
+ this->num_loop_jumps = 0;
this->var_hash = hash_table_ctor(0, hash_table_pointer_hash,
hash_table_pointer_compare);
}