From 444035eafa2fbabbb1261f258bfd41e8051aab34 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Thu, 11 Jun 2020 11:24:20 +0200 Subject: [PATCH] rs6000: skip debug info statements gcc/ChangeLog: PR target/95627 * config/rs6000/rs6000.c (rs6000_density_test): Skip debug statements. --- gcc/config/rs6000/rs6000.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 0bbd06ad1de..00daf979856 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -4987,6 +4987,9 @@ rs6000_density_test (rs6000_cost_data *data) for (gsi = gsi_start_bb (bb); !gsi_end_p (gsi); gsi_next (&gsi)) { gimple *stmt = gsi_stmt (gsi); + if (is_gimple_debug (stmt)) + continue; + stmt_vec_info stmt_info = loop_vinfo->lookup_stmt (stmt); if (!STMT_VINFO_RELEVANT_P (stmt_info) -- 2.30.2