[AMDGPU] Fix for vectorizer crash with pointers of different size
authorStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Wed, 31 Jul 2019 16:33:11 +0000 (16:33 +0000)
committerStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Wed, 31 Jul 2019 16:33:11 +0000 (16:33 +0000)
commitba1e845c211893c3c2f392913232b176908ea7a2
tree2b9ada64a7eaa4d3dba5d6f0b31a460084ffab6d
parenta4ea27de9287744c5584e5f4eb755030661e665d
[AMDGPU] Fix for vectorizer crash with pointers of different size

When vectorizer strips pointers it can eventually end up with
pointers of two different sizes, then SCEV will crash.

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

llvm-svn: 367443
llvm/lib/Transforms/Vectorize/LoadStoreVectorizer.cpp
llvm/test/Transforms/LoadStoreVectorizer/AMDGPU/vect-ptr-ptr-size-mismatch.ll [new file with mode: 0644]