summaryrefslogtreecommitdiff
path: root/gcc/tree-vect-patterns.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2011-06-22 22:37:54 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2011-06-22 22:37:54 +0200
commit4fb489e7968448aaa9321d863660530a81d06f4c (patch)
treed8a4ec106c6e34e75ec1f781325970c2764efed7 /gcc/tree-vect-patterns.c
parent7d059f1894e61304a172cfcb37ee6d92a0227ba9 (diff)
downloadgcc-4fb489e7968448aaa9321d863660530a81d06f4c.tar.gz
re PR debug/49496 (-fcompare-debug failure (length) with -O -ftree-vectorize)
PR debug/49496 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug uses. * gcc.dg/pr49496.c: New test. From-SVN: r175314
Diffstat (limited to 'gcc/tree-vect-patterns.c')
-rw-r--r--gcc/tree-vect-patterns.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/tree-vect-patterns.c b/gcc/tree-vect-patterns.c
index ce941425e0c..429dd87cfff 100644
--- a/gcc/tree-vect-patterns.c
+++ b/gcc/tree-vect-patterns.c
@@ -1,5 +1,6 @@
/* Analysis Utilities for Loop Vectorization.
- Copyright (C) 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
+ Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011
+ Free Software Foundation, Inc.
Contributed by Dorit Nuzman <dorit@il.ibm.com>
This file is part of GCC.
@@ -557,6 +558,8 @@ vect_recog_widen_mult_pattern (VEC (gimple, heap) **stmts,
FOR_EACH_IMM_USE_FAST (use_p, imm_iter, lhs)
{
+ if (is_gimple_debug (USE_STMT (use_p)))
+ continue;
use_stmt = USE_STMT (use_p);
nuses++;
}