summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_fs_sel_peephole.cpp
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2014-09-01 10:58:11 -0700
committerMatt Turner <mattst88@gmail.com>2014-09-24 09:42:46 -0700
commita4fb8897a2bd00eefa8a503ec17d45e791bced91 (patch)
tree2f11f06d9b31e43a464bedf5449aaf693254c9d7 /src/mesa/drivers/dri/i965/brw_fs_sel_peephole.cpp
parent072ea414d04f1b9a7bf06a00b9011e8ad521c878 (diff)
downloadexternal_mesa3d-a4fb8897a2bd00eefa8a503ec17d45e791bced91.zip
external_mesa3d-a4fb8897a2bd00eefa8a503ec17d45e791bced91.tar.gz
external_mesa3d-a4fb8897a2bd00eefa8a503ec17d45e791bced91.tar.bz2
i965: Remove now unneeded calls to calculate_cfg().
Now that nothing invalidates the CFG, we can calculate_cfg() immediately after emit_fb_writes()/emit_thread_end() and never again. Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs_sel_peephole.cpp')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs_sel_peephole.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_sel_peephole.cpp b/src/mesa/drivers/dri/i965/brw_fs_sel_peephole.cpp
index 0bc734e..2437a2f 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_sel_peephole.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_sel_peephole.cpp
@@ -127,8 +127,6 @@ fs_visitor::opt_peephole_sel()
{
bool progress = false;
- calculate_cfg();
-
foreach_block (block, cfg) {
/* IF instructions, by definition, can only be found at the ends of
* basic blocks.