summaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-tail-merge.c
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2012-01-30 13:47:38 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2012-01-30 13:47:38 +0000
commit30e4f955ff6bf8a358cb95182c0817a25c32912f (patch)
treecd9ec4475d15f4f5effcf1dd180b2e4ab2d7c523 /gcc/tree-ssa-tail-merge.c
parentb7b10fb5db6fee0dc20470c4d63e0903920f694d (diff)
downloadgcc-30e4f955ff6bf8a358cb95182c0817a25c32912f.tar.gz
PR debug/52048
* tree-ssa-tail-merge.c (local_def): Ignore debug uses. * g++.dg/other/pr52048.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183723 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-tail-merge.c')
-rw-r--r--gcc/tree-ssa-tail-merge.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/tree-ssa-tail-merge.c b/gcc/tree-ssa-tail-merge.c
index 47dc0a6ffc8..1f46b10a64e 100644
--- a/gcc/tree-ssa-tail-merge.c
+++ b/gcc/tree-ssa-tail-merge.c
@@ -371,6 +371,8 @@ local_def (tree val)
res = true;
FOR_EACH_IMM_USE_STMT (stmt, iter, val)
{
+ if (is_gimple_debug (stmt))
+ continue;
bb = gimple_bb (stmt);
if (bb == def_bb)
continue;