OSDN Git Service

i965/fs: Skip global copy propagation step.
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 10 Aug 2013 01:51:05 +0000 (18:51 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 19 Aug 2013 18:29:23 +0000 (11:29 -0700)
The dataflow analysis used for global copy propagation is severely
broken, and I believe it doesn't actually do anything.  Fixing it will
require a lot of changes, each of which might break things.

Once all the fixes land, we can re-enable this.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp

index 61b2617..ddf21df 100644 (file)
@@ -448,6 +448,7 @@ fs_visitor::opt_copy_propagate()
                                           out_acp[b]) || progress;
    }
 
+   #if 0
    /* Do dataflow analysis for those available copies. */
    fs_copy_prop_dataflow dataflow(mem_ctx, &cfg, out_acp);
 
@@ -467,6 +468,7 @@ fs_visitor::opt_copy_propagate()
 
       progress = opt_copy_propagate_local(mem_ctx, block, in_acp) || progress;
    }
+   #endif
 
    for (int i = 0; i < cfg.num_blocks; i++)
       delete [] out_acp[i];