public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/c++-coroutines] rs6000: skip debug info statements
@ 2020-06-11 20:08 Iain D Sandoe
  0 siblings, 0 replies; only message in thread
From: Iain D Sandoe @ 2020-06-11 20:08 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:444035eafa2fbabbb1261f258bfd41e8051aab34

commit 444035eafa2fbabbb1261f258bfd41e8051aab34
Author: Martin Liska <mliska@suse.cz>
Date:   Thu Jun 11 11:24:20 2020 +0200

    rs6000: skip debug info statements
    
    gcc/ChangeLog:
    
            PR target/95627
            * config/rs6000/rs6000.c (rs6000_density_test): Skip debug
            statements.

Diff:
---
 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)


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-06-11 20:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-11 20:08 [gcc/devel/c++-coroutines] rs6000: skip debug info statements Iain D Sandoe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).