From: Eric Anholt Date: Sat, 7 Jul 2012 01:00:40 +0000 (-0700) Subject: i965/fs: Move a block out of a loop in live variables setup. X-Git-Tag: accepted/2.0alpha-wayland/20121114.171706~1122 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=40cd60a315542f1b1f35ebab836b52716c131d6c;p=profile%2Fivi%2Fmesa.git i965/fs: Move a block out of a loop in live variables setup. This was accidentally copy-and-pasted inside. Reviewed-by: Kenneth Graunke --- diff --git a/src/mesa/drivers/dri/i965/brw_fs_live_variables.cpp b/src/mesa/drivers/dri/i965/brw_fs_live_variables.cpp index 46408da..40e7ae5 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_live_variables.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_live_variables.cpp @@ -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++;