]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR tree-optimization/45764 (wrong code -O2 vs -O3 (problem in vectorizer???))
authorRichard Guenther <rguenther@suse.de>
Thu, 21 Oct 2010 11:10:41 +0000 (11:10 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 21 Oct 2010 11:10:41 +0000 (11:10 +0000)
commit46241ea9d1ecf8a9b337bc6cbeb4f28421060f85
tree07db227d6df5b3850d566a5d4679103b4ded669c
parent82c1834a6f07c83204ef8c2c426355e433cbef29
re PR tree-optimization/45764 (wrong code  -O2 vs -O3    (problem in vectorizer???))

2010-10-21  Richard Guenther  <rguenther@suse.de>
Michael Matz  <matz@suse.de>

PR tree-optimization/45764
* tree-vect-data-refs.c (vect_compute_data_ref_alignment):
Adjust initial misalignment for negative DR_STEP.
(vect_find_same_alignment_drs): Two DRs with different DR_STEP
do not have the same alignment over the whole iteration domain.

        * gcc.dg/torture/pr45764.c: New testcase.

Co-Authored-By: Michael Matz <matz@suse.de>
From-SVN: r165768
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr45764.c [new file with mode: 0644]
gcc/tree-vect-data-refs.c