OSDN Git Service

PR tree-optimization/37482
authorirar <irar@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 22 Sep 2008 07:55:39 +0000 (07:55 +0000)
committerirar <irar@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 22 Sep 2008 07:55:39 +0000 (07:55 +0000)
commitbdc89b8f287e686e1464e3fb29d1c7d635f57ffc
tree083ed4affd0a185e5e877ef640693c7f6195fbb4
parent7e56b3723e8bfbeff346b9c76d971b172cc09b6c
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@140544 138bc75d-0d04-0410-961f-82ee72b054a4
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