Skip to content
Commit 7ac15d9e authored by Karol Herbst's avatar Karol Herbst Committed by Dylan Baker
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: default avatarKarol Herbst <kherbst@redhat.com>
Reviewed-by: default avatarJason Ekstrand <jason@jlekstrand.net>
(cherry picked from commit 7e08f22a)
parent 6b484511
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment