intel/fs: Rename block to scan_block in can_coalesce_vars
authorJason Ekstrand <jason@jlekstrand.net>
Sat, 18 Apr 2020 22:22:01 +0000 (17:22 -0500)
committerMarge Bot <eric+marge@anholt.net>
Tue, 21 Apr 2020 01:00:24 +0000 (01:00 +0000)
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4627>

src/intel/compiler/brw_fs_register_coalesce.cpp

index 44ad3e624c3738154cf62e77beb6027e48a0d668..e19648635199038a42668cd389366fd71f250583 100644 (file)
@@ -120,13 +120,13 @@ can_coalesce_vars(const fs_live_variables &live,
    int start_ip = MAX2(dst_start, src_start);
    int end_ip = MIN2(dst_end, src_end);
 
-   foreach_block(block, cfg) {
-      if (block->end_ip < start_ip)
+   foreach_block(scan_block, cfg) {
+      if (scan_block->end_ip < start_ip)
          continue;
 
-      int scan_ip = block->start_ip - 1;
+      int scan_ip = scan_block->start_ip - 1;
 
-      foreach_inst_in_block(fs_inst, scan_inst, block) {
+      foreach_inst_in_block(fs_inst, scan_inst, scan_block) {
          scan_ip++;
 
          /* Ignore anything before the intersection of the live ranges */