~mmach/netext73/mesa-ryzen

« back to all changes in this revision

Viewing changes to src/compiler/nir/nir_opt_rematerialize_compares.c

  • Committer: mmach
  • Date: 2023-11-02 21:31:35 UTC
  • Revision ID: netbit73@gmail.com-20231102213135-18d4tzh7tj0uz752
2023-11-02 22:11:57

Show diffs side-by-side

added added

removed removed

Lines of Context:
186
186
{
187
187
   bool progress = false;
188
188
 
189
 
   nir_foreach_function(function, shader) {
190
 
      if (function->impl == NULL)
191
 
         continue;
192
 
 
193
 
      progress = nir_opt_rematerialize_compares_impl(shader, function->impl)
194
 
         || progress;
 
189
   nir_foreach_function_impl(impl, shader) {
 
190
      progress = nir_opt_rematerialize_compares_impl(shader, impl) || progress;
195
191
   }
196
192
 
197
193
   return progress;