Files
mesa/src
Daniel Schürmann 79a987ad2a nir/opt_if: also merge break statements with ones after the branch
This optimizations turns

     loop {
        ...
        if (cond1) {
           if (cond2) {
              do_work_1();
              break;
           } else {
              do_work_2();
           }
           do_work_3();
           break;
        } else {
           ...
        }
     }

 into:

     loop {
        ...
        if (cond1) {
           if (cond2) {
              do_work_1();
           } else {
              do_work_2();
              do_work_3();
           }
           break;
        } else {
           ...
        }
     }

As this optimizations moves code into the NIF statement,
it re-iterates on the branch legs in case of success.

Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7587>
2022-01-13 02:30:32 +00:00
..
2022-01-12 23:50:35 +00:00
2022-01-12 23:19:22 +00:00
2022-01-10 22:53:32 +00:00
2022-01-10 21:52:42 +00:00
2022-01-10 22:53:32 +00:00
2021-03-20 10:38:55 +00:00
2022-01-10 22:53:32 +00:00
2021-12-09 09:05:23 -08:00
2022-01-13 02:02:14 +00:00