summaryrefslogtreecommitdiff
path: root/gcc/tree-vect-loop.c
diff options
context:
space:
mode:
authoraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2010-03-06 20:28:04 +0000
committeraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2010-03-06 20:28:04 +0000
commit12e7ff4ffdd6f9d092f5208879cea88fe277089d (patch)
tree094a0a83ba7bbad79abdcda20bb19b8498813e4f /gcc/tree-vect-loop.c
parent493a60c854bef69cf244dfdc3db03c64ad4b0ef3 (diff)
downloadgcc-12e7ff4ffdd6f9d092f5208879cea88fe277089d.tar.gz
PR debug/42897
* tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug uses of relevant DEFs that are dead outside the loop too. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157258 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-vect-loop.c')
-rw-r--r--gcc/tree-vect-loop.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/gcc/tree-vect-loop.c b/gcc/tree-vect-loop.c
index 16aa242e7fe..afbd342fd1c 100644
--- a/gcc/tree-vect-loop.c
+++ b/gcc/tree-vect-loop.c
@@ -4236,13 +4236,12 @@ vect_transform_loop (loop_vec_info loop_vinfo)
if (!stmt_info)
continue;
+ if (MAY_HAVE_DEBUG_STMTS && !STMT_VINFO_LIVE_P (stmt_info))
+ vect_loop_kill_debug_uses (loop, phi);
+
if (!STMT_VINFO_RELEVANT_P (stmt_info)
&& !STMT_VINFO_LIVE_P (stmt_info))
- {
- if (MAY_HAVE_DEBUG_STMTS)
- vect_loop_kill_debug_uses (loop, phi);
- continue;
- }
+ continue;
if ((TYPE_VECTOR_SUBPARTS (STMT_VINFO_VECTYPE (stmt_info))
!= (unsigned HOST_WIDE_INT) vectorization_factor)
@@ -4279,11 +4278,12 @@ vect_transform_loop (loop_vec_info loop_vinfo)
continue;
}
+ if (MAY_HAVE_DEBUG_STMTS && !STMT_VINFO_LIVE_P (stmt_info))
+ vect_loop_kill_debug_uses (loop, stmt);
+
if (!STMT_VINFO_RELEVANT_P (stmt_info)
&& !STMT_VINFO_LIVE_P (stmt_info))
{
- if (MAY_HAVE_DEBUG_STMTS)
- vect_loop_kill_debug_uses (loop, stmt);
gsi_next (&si);
continue;
}