diff options
author | Richard Guenther <rguenther@suse.de> | 2010-12-02 16:26:22 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2010-12-02 16:26:22 +0000 |
commit | b2087e8dad076c2482622329023cde67c631edbb (patch) | |
tree | 2ce49ee8b53dc371e2d6df95e07158e6f342b2b3 /gcc/tree-vect-loop.c | |
parent | 6dbbece65abb5765fedddfe4ab01950b61d05c57 (diff) | |
download | gcc-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/tree-vect-loop.c')
-rw-r--r-- | gcc/tree-vect-loop.c | 2 |
1 files changed, 2 insertions, 0 deletions
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: "); |