rs6000: skip debug info statements

gcc/ChangeLog:

	PR target/95627
	* config/rs6000/rs6000.c (rs6000_density_test): Skip debug
	statements.
This commit is contained in:
Martin Liska 2020-06-11 11:24:20 +02:00
parent 2ff0f48819
commit 444035eafa
No known key found for this signature in database
GPG Key ID: 4DC182DC0FA73785
1 changed files with 3 additions and 0 deletions

View File

@ -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)