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
This commit is contained in:
Richard Guenther 2010-12-02 16:26:22 +00:00 committed by Richard Biener
parent 6dbbece65a
commit b2087e8dad
2 changed files with 7 additions and 0 deletions

View 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

View 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: ");