nir/dead_cf: remove infinity loops

The infinity loops lead to several problems in compiler and
to fix them we can simply eliminate loops which don't have exits
This solution is one of several options which were suggested
by Jason Ekstrand.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=111405
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=111069
Signed-off-by: Andrii Simiklit <andrii.simiklit@globallogic.com>
17 jobs for !1717 with fix/loop_with_no_exits in 46 minutes and 8 seconds (queued for 2 minutes and 45 seconds)
detached
Status Job ID Name Coverage
  Containers Build
passed #518473
debian

00:00:25

 
  Build+Test
passed #518482
meson-arm64

00:02:07

passed #518481
meson-armhf

00:02:23

passed #518475
meson-clang

00:08:35

passed #518479
meson-clover

00:10:32

passed #518483
meson-i386

00:04:37

passed #518478
meson-main

00:13:45

passed #518474
meson-swr-glvnd

00:05:45

passed #518480
meson-vulkan

00:04:30

passed #518485
scons-llvm

00:04:43

passed #518484
scons-nollvm

00:07:40

passed #518476
scons-swr

00:08:01

passed #518477
scons-win64

00:06:30

 
  Test
passed #518486
test-llvmpipe-gles2 1/4

00:03:27

passed #518487
test-llvmpipe-gles2 2/4

00:03:53

passed #518488
test-llvmpipe-gles2 3/4

00:03:31

passed #518489
test-llvmpipe-gles2 4/4

00:03:39