i965/fs: Rename "cont" to "progress" in dataflow algorithm.
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 10 Aug 2013 01:25:36 +0000 (18:25 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 19 Aug 2013 18:29:23 +0000 (11:29 -0700)
This variable indicates that the fixed-point algorithm made changes to
the data at this step, so it needs to run for another iteration.

"progress" seems a nicer name for that.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp

index 663b61f385943ce1f1f6389d8bfd1eb2592052dc..055444d4c9968debec2f49ce984a800ab701e66b 100644 (file)
@@ -162,10 +162,10 @@ fs_copy_prop_dataflow::setup_kills()
 void
 fs_copy_prop_dataflow::run()
 {
-   bool cont;
+   bool progress;
 
    do {
-      cont = false;
+      progress = false;
 
       for (int b = 0; b < cfg->num_blocks; b++) {
          for (int i = 0; i < bitset_words; i++) {
@@ -174,7 +174,7 @@ fs_copy_prop_dataflow::run()
                                        ~bd[b].liveout[i]);
             if (new_liveout) {
                bd[b].liveout[i] |= new_liveout;
-               cont = true;
+               progress = true;
             }
 
             /* Update livein: if it's live at the end of all parents, it's
@@ -190,11 +190,11 @@ fs_copy_prop_dataflow::run()
             }
             if (new_livein) {
                bd[b].livein[i] |= new_livein;
-               cont = true;
+               progress = true;
             }
          }
       }
-   } while (cont);
+   } while (progress);
 }
 
 bool