PR tree-optimization/54889
commit1197cde62086c7211152a2793a31fa9026ac9aec
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 16 Oct 2012 11:19:37 +0000 (16 11:19 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 16 Oct 2012 11:19:37 +0000 (16 11:19 +0000)
treeddeae4a074044091ad624bc53856955eaf820414
parent24ec66364cd63b2a9f3dd4e349b131bd80206ce1
PR tree-optimization/54889
* tree-vect-stmts.c (vectorizable_load): Add VIEW_CONVERT_EXPR if
ARRAY_REF newref doesn't have compatible type with vectype element
type, use vectype element type for MEM_REF.

* gfortran.dg/pr54889.f90: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192493 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pr54889.f90 [new file with mode: 0644]
gcc/tree-vect-stmts.c