i965/vec4: Invalidate live intervals in opt_cse, not _local.
authorMatt Turner <mattst88@gmail.com>
Sat, 12 Jul 2014 03:38:09 +0000 (20:38 -0700)
committerMatt Turner <mattst88@gmail.com>
Mon, 14 Jul 2014 18:27:52 +0000 (11:27 -0700)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_vec4_cse.cpp

index 7bb016dcce24705e3d8c068e104ac2be7f950129..83c7eb83eb287b85d62b3bfe7af046a03650d52f 100644 (file)
@@ -244,9 +244,6 @@ vec4_visitor::opt_cse_local(bblock_t *block)
 
    ralloc_free(cse_ctx);
 
-   if (progress)
-      invalidate_live_intervals();
-
    return progress;
 }
 
@@ -265,5 +262,8 @@ vec4_visitor::opt_cse()
       progress = opt_cse_local(block) || progress;
    }
 
+   if (progress)
+      invalidate_live_intervals();
+
    return progress;
 }