This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/50133] [4.7 Regression] ICE: SIGSEGV in vect_finish_stmt_generation (gimple.h:4821) with -ftree-vectorize -fno-tree-loop-im
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 21 Aug 2011 17:43:08 +0000
- Subject: [Bug tree-optimization/50133] [4.7 Regression] ICE: SIGSEGV in vect_finish_stmt_generation (gimple.h:4821) with -ftree-vectorize -fno-tree-loop-im
- Auto-submitted: auto-generated
- References: <bug-50133-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50133
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-08-21 17:43:08 UTC ---
Insert before gsi_end_p should be fine, you just can't copy locus from it in
that case. So you could as well do something like:
si = *gsi;
if (gsi_end_p (si))
{
gsi_prev (&si);
gsi_prev_nondebug (&si);
}
else if (is_gimple_debug (gsi_stmt (si)))
{
gsi_next_nondebug (&si);
gcc_assert (!gsi_end_p (si));
}
where the first gsi_prev would move from the end to the newly inserted stmt and
gsi_prev_nondebug to the previous stmt (skipping any debug stmts).
This wouldn't work when inserting into a completely empty bb, but does the
vectorizer ever do something like that?