LoadStoreVectorizer crashes due to unsized type
authorStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Tue, 17 Apr 2018 21:40:04 +0000 (21:40 +0000)
committerStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Tue, 17 Apr 2018 21:40:04 +0000 (21:40 +0000)
commit0bee630814d0031fa17997c3c21c8499ac42db60
treed7feaaf3d7d7f15c80083a503cf385b2c2746c39
parentf437e35671089ab3bdbf11b65a53fe22b9f24172
LoadStoreVectorizer crashes due to unsized type

When we skip bitcasts while looking for GEP in LoadSoreVectorizer
we should also verify that the type is sized otherwise we assert

Differential Revision: https://reviews.llvm.org/D45709

llvm-svn: 330221
llvm/lib/Transforms/Vectorize/LoadStoreVectorizer.cpp
llvm/test/CodeGen/X86/loadStore_vectorizer.ll [new file with mode: 0644]