From 3bcfafcf0320ee5407716ff67062e80d162760d4 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Fri, 27 Aug 2010 15:41:20 -0700 Subject: glsl2: Track the number of ir_loop_jump instructions that are in a loop --- src/glsl/loop_analysis.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/glsl/loop_analysis.h') diff --git a/src/glsl/loop_analysis.h b/src/glsl/loop_analysis.h index b7c0514943..f5c5a04be8 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); } -- cgit v1.2.3