projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
st/nine: Rework buffer presentation path
[mesa.git]
/
src
/
compiler
/
nir
/
nir_opt_cse.c
diff --git
a/src/compiler/nir/nir_opt_cse.c
b/src/compiler/nir/nir_opt_cse.c
index 364fb023dce70bd0fe67b5306205158dcf82f68a..71953b81bf77715c39915324bcf8d13933444f61 100644
(file)
--- a/
src/compiler/nir/nir_opt_cse.c
+++ b/
src/compiler/nir/nir_opt_cse.c
@@
-43,7
+43,7
@@
cse_block(nir_block *block, struct set *instr_set)
{
bool progress = false;
{
bool progress = false;
- nir_foreach_instr_safe(
block, instr
) {
+ nir_foreach_instr_safe(
instr, block
) {
if (nir_instr_set_add_or_rewrite(instr_set, instr)) {
progress = true;
nir_instr_remove(instr);
if (nir_instr_set_add_or_rewrite(instr_set, instr)) {
progress = true;
nir_instr_remove(instr);
@@
-55,7
+55,7
@@
cse_block(nir_block *block, struct set *instr_set)
progress |= cse_block(child, instr_set);
}
progress |= cse_block(child, instr_set);
}
- nir_foreach_instr(
block, instr
)
+ nir_foreach_instr(
instr, block
)
nir_instr_set_remove(instr_set, instr);
return progress;
nir_instr_set_remove(instr_set, instr);
return progress;
@@
-83,7
+83,7
@@
nir_opt_cse(nir_shader *shader)
{
bool progress = false;
{
bool progress = false;
- nir_foreach_function(
shader, function
) {
+ nir_foreach_function(
function, shader
) {
if (function->impl)
progress |= nir_opt_cse_impl(function->impl);
}
if (function->impl)
progress |= nir_opt_cse_impl(function->impl);
}