re PR tree-optimization/46787 (Does not vectorize loop with load from scalar variable)
authorRichard Guenther <rguenther@suse.de>
Thu, 30 Jun 2011 13:27:43 +0000 (13:27 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 30 Jun 2011 13:27:43 +0000 (13:27 +0000)
commit42373e0b05c26d047925387d71fa833540dad8f0
treece6a6cf934c4c1c58eb2379172f89d804384e2fa
parent7aa62ea1f86d6126485a01b7e91efe85544cc877
re PR tree-optimization/46787 (Does not vectorize loop with load from scalar variable)

2011-06-30  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/46787
* tree-data-ref.c (dr_address_invariant_p): Remove.
(find_data_references_in_stmt): Invariant accesses are ok now.
* tree-vect-stmts.c (vectorizable_load): Handle invariant
loads.
* tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
invariant loads.

* gcc.dg/vect/vect-121.c: New testcase.

From-SVN: r175704
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/vect-121.c [new file with mode: 0644]
gcc/tree-data-ref.c
gcc/tree-vect-data-refs.c
gcc/tree-vect-stmts.c