]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[rs6000] Fixup stmt_vinfo walk
authorRichard Biener <rguenther@suse.de>
Thu, 30 Jul 2026 10:33:05 +0000 (12:33 +0200)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 30 Jul 2026 10:36:00 +0000 (12:36 +0200)
The following properly skips labels as we no longer generate
stmt_vec_info structures for those.

* config/rs6000/rs6000.cc (rs6000_cost_data::density_test):
Start BB walk after labels.

gcc/config/rs6000/rs6000.cc

index c620d1a31e87ae3ffc2d2dddc15c8dbcfad9dc29..000295340062479fdb4a3f7aa5c868f22db8ee81 100644 (file)
@@ -5301,7 +5301,7 @@ rs6000_cost_data::density_test (loop_vec_info loop_vinfo)
       basic_block bb = bbs[i];
       gimple_stmt_iterator gsi;
 
-      for (gsi = gsi_start_bb (bb); !gsi_end_p (gsi); gsi_next (&gsi))
+      for (gsi = gsi_after_labels (bb); !gsi_end_p (gsi); gsi_next (&gsi))
        {
          gimple *stmt = gsi_stmt (gsi);
          if (is_gimple_debug (stmt))