i965/fs: Invalidate live intervals in opt_cse, not _local.
authorMatt Turner <mattst88@gmail.com>
Sat, 12 Jul 2014 03:37:04 +0000 (20:37 -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_fs_cse.cpp

index 90a8a1436918f1b01b1b33e4e4a899f172b65187..92c7495b990eedb172b7297f170ce44816ba1e3d 100644 (file)
@@ -307,9 +307,6 @@ fs_visitor::opt_cse_local(bblock_t *block)
 
    ralloc_free(cse_ctx);
 
-   if (progress)
-      invalidate_live_intervals();
-
    return progress;
 }
 
@@ -327,5 +324,8 @@ fs_visitor::opt_cse()
       progress = opt_cse_local(block) || progress;
    }
 
+   if (progress)
+      invalidate_live_intervals();
+
    return progress;
 }