PR tree-optimization/57705
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 25 Jun 2013 12:35:21 +0000 (12:35 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 25 Jun 2013 12:35:21 +0000 (12:35 +0000)
commitbb0d250905bbcdd1586f99dc4d9fc682353d4ca6
tree2611724ce72ecc8b57a3170f0e0549f24c664069
parent2f6c1cf468cbc75b2a1fb914e6b7d00633484756
PR tree-optimization/57705
* tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
SSA_NAME step, provided that it is not defined inside the loop.
(vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested
loop.
(get_initial_def_for_induction): Handle SSA_NAME IV step.

* gcc.dg/vect/pr57705.c: New test.
* gcc.dg/vect/vect-iv-7.c: Add noclone attribute, remove xfail.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@200394 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/pr57705.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/vect/vect-iv-7.c
gcc/tree-vect-loop.c