nir: Convert to nir_foreach_function_impl
Done by hand at each call site but going very quickly with funny Vim motions and common regexes. This is a very common idiom in NIR. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23807>
This commit is contained in:

committed by
Marge Bot

parent
19daa9283c
commit
190b1fdc64
@@ -251,8 +251,8 @@ bool
|
||||
nir_opt_dce(nir_shader *shader)
|
||||
{
|
||||
bool progress = false;
|
||||
nir_foreach_function(function, shader) {
|
||||
if (function->impl && nir_opt_dce_impl(function->impl))
|
||||
nir_foreach_function_impl(impl, shader) {
|
||||
if (nir_opt_dce_impl(impl))
|
||||
progress = true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user