From: Martin Liska Date: Thu, 11 Jun 2020 09:24:20 +0000 (+0200) Subject: rs6000: skip debug info statements X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=444035eafa2fbabbb1261f258bfd41e8051aab34;p=gcc.git rs6000: skip debug info statements gcc/ChangeLog: PR target/95627 * config/rs6000/rs6000.c (rs6000_density_test): Skip debug statements. --- 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)