forked from OSchip/llvm-project
parent
77a699a829
commit
c62894d440
|
@ -343,9 +343,7 @@ void ConvertToScalarInfo::MergeInType(const Type *In, uint64_t Offset,
|
||||||
// if the implied vector agrees with what we already have and if Offset is
|
// if the implied vector agrees with what we already have and if Offset is
|
||||||
// compatible with it.
|
// compatible with it.
|
||||||
if (Offset % EltSize == 0 && AllocaSize % EltSize == 0 &&
|
if (Offset % EltSize == 0 && AllocaSize % EltSize == 0 &&
|
||||||
Offset * 8 <
|
(!VectorTy || Offset * 8 < VectorTy->getPrimitiveSizeInBits())) {
|
||||||
(VectorTy ? VectorTy->getPrimitiveSizeInBits()
|
|
||||||
: (AllocaSize / EltSize) * In->getPrimitiveSizeInBits())) {
|
|
||||||
if (!VectorTy) {
|
if (!VectorTy) {
|
||||||
VectorTy = VectorType::get(In, AllocaSize/EltSize);
|
VectorTy = VectorType::get(In, AllocaSize/EltSize);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue