i965/fs: Move a block out of a loop in live variables setup.
authorEric Anholt <eric@anholt.net>
Sat, 7 Jul 2012 01:00:40 +0000 (18:00 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 18 Jul 2012 19:30:06 +0000 (12:30 -0700)
This was accidentally copy-and-pasted inside.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_fs_live_variables.cpp

index 46408da7b794aff64f7a87a22c8aed5b94d94433..40e7ae5159027f84065d5acce6cbd130c0825125 100644 (file)
@@ -192,11 +192,12 @@ fs_visitor::calculate_live_intervals()
 
            use[reg] = ip;
         }
-        if (inst->dst.file == GRF) {
-           int reg = inst->dst.reg;
+      }
 
-           def[reg] = MIN2(def[reg], ip);
-        }
+      if (inst->dst.file == GRF) {
+         int reg = inst->dst.reg;
+
+         def[reg] = MIN2(def[reg], ip);
       }
 
       ip++;