re PR tree-optimization/37482 (definition in block 51 follows the use for SSA_NAME...
authorIra Rosen <irar@il.ibm.com>
Mon, 22 Sep 2008 07:55:39 +0000 (07:55 +0000)
committerIra Rosen <irar@gcc.gnu.org>
Mon, 22 Sep 2008 07:55:39 +0000 (07:55 +0000)
commit5e038cad0bb468177c7adad1faebf3465ecda0fd
tree083ed4affd0a185e5e877ef640693c7f6195fbb4
parentc801c273a6b8080f3fce824b3872fae899385618
re PR tree-optimization/37482 (definition in block 51 follows the use for SSA_NAME with -maltivec)

PR tree-optimization/37482
* tree-vectorizer.h (struct _slp_instance): Add new field.
(SLP_INSTANCE_FIRST_LOAD_STMT): New.
(get_earlier_stmt): New function.
* tree-vect-analyze.c (vect_find_first_load_in_slp_instance): New
function.
(vect_analyze_slp_instance): Set SLP_INSTANCE_FIRST_LOAD_STMT.
* tree-vect-transform.c (vect_finish_stmt_generation): Remove the
asserts that GSI points to the scalar statement being vectorized.
Set new statement location according to GSI.
(vect_schedule_slp_instance): Use GSI of
SLP_INSTANCE_FIRST_LOAD_STMT when vectorizing loads.

From-SVN: r140544
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/pr37482.c [new file with mode: 0644]
gcc/tree-vect-analyze.c
gcc/tree-vect-transform.c
gcc/tree-vectorizer.h