nir: reword code comment
authorTimothy Arceri <tarceri@itsqueeze.com>
Mon, 26 Nov 2018 01:04:35 +0000 (12:04 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Wed, 12 Dec 2018 23:58:35 +0000 (10:58 +1100)
Reviewed-by: Thomas Helland <thomashelland90@gmail.com>
src/compiler/nir/nir_loop_analyze.c

index 6c06f51c3490dd639c670ed956dc1fbe5c3656e4..4a7397d2149320e88309cf428b1386169616fb3e 100644 (file)
@@ -239,8 +239,8 @@ compute_induction_information(loop_info_state *state)
       nir_foreach_phi_src(src, phi) {
          nir_loop_variable *src_var = get_loop_var(src->src.ssa, state);
 
-         /* If one of the sources is in a conditional or nested block then
-          * panic.
+         /* If one of the sources is in an if branch or nested loop then don't
+          * attempt to go any further.
           */
          if (src_var->in_if_branch || src_var->in_nested_loop)
             break;