nir/dead_cf: remove infinite loops and everything after
The infinite 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 in bug111069.
/cc @jekstrand @cwabbott0 @alyssa
v2: remove everything after the loop to avoid behavior change (Alyssa Rosenzweig alyssa.rosenzweig@collabora.com)
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=111405
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=111069
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=111449
Signed-off-by: Andrii Simiklit andrii.simiklit@globallogic.com