Skip to content
Snippets Groups Projects
Commit 7e08f22a authored by Karol Herbst's avatar Karol Herbst :crab:
Browse files

nir/opt_if: don't mark progress if nothing changes


if we have something like this:

loop {
   ...
   if x {
      break;
   } else {
      continue;
   }
}

opt_if_loop_last_continue returns true marking progress allthough nothing
changes.

Fixes: 5921a19d "nir: add if opt opt_if_loop_last_continue()"
Signed-off-by: Karol Herbst's avatarKarol Herbst <kherbst@redhat.com>
Reviewed-by: default avatarJason Ekstrand <jason@jlekstrand.net>
parent 3c540e0a
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment