summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/i965/brw_fs_cse.cpp
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2014-07-12 21:18:39 -0700
committerMatt Turner <mattst88@gmail.com>2014-08-22 10:23:34 -0700
commit20a849b4aa63c7fce96b04de674a4c70f054ed9c (patch)
tree087219521b7702de2bc0754c8831fa55140701c0 /src/mesa/drivers/dri/i965/brw_fs_cse.cpp
parente0aa45768c6bda947b645ae6962054673937a55f (diff)
i965: Use basic-block aware insertion/removal functions.
To avoid invalidating and recreating the control flow graph. Also stop invalidating the CFG in places we didn't add or remove an instruction. cfg calculations: 202951 -> 80307 (-60.43%) Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs_cse.cpp')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs_cse.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_cse.cpp b/src/mesa/drivers/dri/i965/brw_fs_cse.cpp
index 639097f1dd..9db6865f58 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_cse.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_cse.cpp
@@ -222,7 +222,7 @@ fs_visitor::opt_cse_local(bblock_t *block)
copy->force_writemask_all =
entry->generator->force_writemask_all;
}
- entry->generator->insert_after(copy);
+ entry->generator->insert_after(block, copy);
}
/* dest <- temp */
@@ -244,7 +244,7 @@ fs_visitor::opt_cse_local(bblock_t *block)
copy = MOV(dst, tmp);
copy->force_writemask_all = inst->force_writemask_all;
}
- inst->insert_before(copy);
+ inst->insert_before(block, copy);
}
/* Set our iterator so that next time through the loop inst->next
@@ -253,7 +253,7 @@ fs_visitor::opt_cse_local(bblock_t *block)
*/
fs_inst *prev = (fs_inst *)inst->prev;
- inst->remove();
+ inst->remove(block);
/* Appending an instruction may have changed our bblock end. */
if (inst == block->end) {
@@ -321,7 +321,7 @@ fs_visitor::opt_cse()
}
if (progress)
- invalidate_live_intervals();
+ invalidate_live_intervals(false);
return progress;
}