projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
nir/lower_locals_to_regs: fixup for new foreach_block()
[mesa.git]
/
src
/
compiler
/
nir
/
nir_opt_dce.c
diff --git
a/src/compiler/nir/nir_opt_dce.c
b/src/compiler/nir/nir_opt_dce.c
index 32436c18b60f6098ea528668178ce4c87b2f30a2..ee656ac2a67cd7c7dbcfdc9a7407b8582fed388d 100644
(file)
--- a/
src/compiler/nir/nir_opt_dce.c
+++ b/
src/compiler/nir/nir_opt_dce.c
@@
-71,7
+71,7
@@
init_instr(nir_instr *instr, struct exec_list *worklist)
nir_tex_instr *tex_instr;
/* We use the pass_flags to store the live/dead information. In DCE, we
nir_tex_instr *tex_instr;
/* We use the pass_flags to store the live/dead information. In DCE, we
- * just treat it as a zero/non-zer
l
boolean for whether or not the
+ * just treat it as a zero/non-zer
o
boolean for whether or not the
* instruction is live.
*/
instr->pass_flags = 0;
* instruction is live.
*/
instr->pass_flags = 0;
@@
-151,7
+151,7
@@
nir_opt_dce_impl(nir_function_impl *impl)
struct exec_list *worklist = ralloc(NULL, struct exec_list);
exec_list_make_empty(worklist);
struct exec_list *worklist = ralloc(NULL, struct exec_list);
exec_list_make_empty(worklist);
- nir_foreach_block(impl, init_block_cb, worklist);
+ nir_foreach_block
_call
(impl, init_block_cb, worklist);
while (!exec_list_is_empty(worklist)) {
nir_instr *instr = worklist_pop(worklist);
while (!exec_list_is_empty(worklist)) {
nir_instr *instr = worklist_pop(worklist);
@@
-161,7
+161,7
@@
nir_opt_dce_impl(nir_function_impl *impl)
ralloc_free(worklist);
bool progress = false;
ralloc_free(worklist);
bool progress = false;
- nir_foreach_block(impl, delete_block_cb, &progress);
+ nir_foreach_block
_call
(impl, delete_block_cb, &progress);
if (progress)
nir_metadata_preserve(impl, nir_metadata_block_index |
if (progress)
nir_metadata_preserve(impl, nir_metadata_block_index |