aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2010-12-02 16:26:22 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2010-12-02 16:26:22 +0000
commitb2087e8dad076c2482622329023cde67c631edbb (patch)
tree2ce49ee8b53dc371e2d6df95e07158e6f342b2b3 /gcc
parent6dbbece65abb5765fedddfe4ab01950b61d05c57 (diff)
downloadgcc-b2087e8dad076c2482622329023cde67c631edbb.zip
gcc-b2087e8dad076c2482622329023cde67c631edbb.tar.gz
gcc-b2087e8dad076c2482622329023cde67c631edbb.tar.bz2
tree-vect-loop.c (vect_analyze_scalar_cycles_1): Disregard sign-changing conversions for induction detection.
2010-12-02 Richard Guenther <rguenther@suse.de> * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Disregard sign-changing conversions for induction detection. From-SVN: r167378
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/tree-vect-loop.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index bde5e91..3241bbd 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
2010-12-02 Richard Guenther <rguenther@suse.de>
+ * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Disregard
+ sign-changing conversions for induction detection.
+
+2010-12-02 Richard Guenther <rguenther@suse.de>
+
PR tree-optimization/46723
* tree-vect-loop.c (get_initial_def_for_induction): Strip
conversions from the induction evolution and apply it to
diff --git a/gcc/tree-vect-loop.c b/gcc/tree-vect-loop.c
index 7a562b1..3aa77d6 100644
--- a/gcc/tree-vect-loop.c
+++ b/gcc/tree-vect-loop.c
@@ -478,6 +478,8 @@ vect_analyze_scalar_cycles_1 (loop_vec_info loop_vinfo, struct loop *loop)
/* Analyze the evolution function. */
access_fn = analyze_scalar_evolution (loop, def);
+ if (access_fn)
+ STRIP_NOPS (access_fn);
if (access_fn && vect_print_dump_info (REPORT_DETAILS))
{
fprintf (vect_dump, "Access function of PHI: ");