]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
tree-vect-loop.c (vect_analyze_scalar_cycles_1): Disregard sign-changing conversions...
authorRichard Guenther <rguenther@suse.de>
Thu, 2 Dec 2010 16:26:22 +0000 (16:26 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 2 Dec 2010 16:26:22 +0000 (16:26 +0000)
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

gcc/ChangeLog
gcc/tree-vect-loop.c

index bde5e915515217894f37bef75468eeec4ea07c6c..3241bbd38577e0593f95879b810f6f6080091e08 100644 (file)
@@ -1,3 +1,8 @@
+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
index 7a562b124c0ae67f5bfb3ab8fe42daa32b2e7ffa..3aa77d6ec1018687aafb70d47d4869525af4dcdb 100644 (file)
@@ -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: ");