summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_fs_dead_code_eliminate.cpp
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2014-07-11 20:54:52 -0700
committerMatt Turner <mattst88@gmail.com>2014-07-21 10:35:34 -0700
commit680fe0acb3e6569f7b9aab1913e9181d5a7eee2f (patch)
tree067fee1a9beffbe20f6279ec312fa1d48621c9cb /src/mesa/drivers/dri/i965/brw_fs_dead_code_eliminate.cpp
parentb0f780345ed4b75485a0fdd8cea65fa77c7675bd (diff)
downloadexternal_mesa3d-680fe0acb3e6569f7b9aab1913e9181d5a7eee2f.zip
external_mesa3d-680fe0acb3e6569f7b9aab1913e9181d5a7eee2f.tar.gz
external_mesa3d-680fe0acb3e6569f7b9aab1913e9181d5a7eee2f.tar.bz2
i965: Add cfg to backend_visitor.
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs_dead_code_eliminate.cpp')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs_dead_code_eliminate.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_dead_code_eliminate.cpp b/src/mesa/drivers/dri/i965/brw_fs_dead_code_eliminate.cpp
index d41a42c..c00ec1b 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_dead_code_eliminate.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_dead_code_eliminate.cpp
@@ -39,15 +39,13 @@ fs_visitor::dead_code_eliminate()
{
bool progress = false;
- cfg_t cfg(&instructions);
-
- calculate_live_intervals(&cfg);
+ calculate_live_intervals();
int num_vars = live_intervals->num_vars;
BITSET_WORD *live = ralloc_array(NULL, BITSET_WORD, BITSET_WORDS(num_vars));
- for (int b = 0; b < cfg.num_blocks; b++) {
- bblock_t *block = cfg.blocks[b];
+ for (int b = 0; b < cfg->num_blocks; b++) {
+ bblock_t *block = cfg->blocks[b];
memcpy(live, live_intervals->bd[b].liveout,
sizeof(BITSET_WORD) * BITSET_WORDS(num_vars));