diff options
author | Jakub Jelinek <jakub@redhat.com> | 2018-11-19 15:44:08 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2018-11-19 15:44:08 +0100 |
commit | 4cb3570c8c453a830589b717d8519daa31ec7468 (patch) | |
tree | b93cf7c2f59be7bcc90e7b257aaff0a9968f7717 /gcc/tree-vect-loop.c | |
parent | 3b60ab0aab44841a4b7206ecb658fc761959d93c (diff) | |
download | gcc-4cb3570c8c453a830589b717d8519daa31ec7468.zip gcc-4cb3570c8c453a830589b717d8519daa31ec7468.tar.gz gcc-4cb3570c8c453a830589b717d8519daa31ec7468.tar.bz2 |
re PR tree-optimization/88071 (ICE: verify_gimple failed (error: dead STMT in EH table))
PR tree-optimization/88071
* tree-vect-loop.c (vectorize_fold_left_reduction): Pass true instead
of false as last argument to gsi_remove.
* tree-vect-stmts.c (vect_finish_replace_stmt): Pass true instead of
false as last argument to gsi_replace.
* gcc.dg/pr88071.c: New test.
From-SVN: r266276
Diffstat (limited to 'gcc/tree-vect-loop.c')
-rw-r--r-- | gcc/tree-vect-loop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-vect-loop.c b/gcc/tree-vect-loop.c index f2d9d8a..81d8d46 100644 --- a/gcc/tree-vect-loop.c +++ b/gcc/tree-vect-loop.c @@ -5861,7 +5861,7 @@ vectorize_fold_left_reduction (stmt_vec_info stmt_info, /* Remove the statement, so that we can use the same code paths as for statements that we've just created. */ gimple_stmt_iterator tmp_gsi = gsi_for_stmt (new_stmt); - gsi_remove (&tmp_gsi, false); + gsi_remove (&tmp_gsi, true); } if (i == vec_num - 1) |