diff options
Diffstat (limited to 'llvm/lib/Transforms/IPO/GlobalOpt.cpp')
-rw-r--r-- | llvm/lib/Transforms/IPO/GlobalOpt.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/IPO/GlobalOpt.cpp b/llvm/lib/Transforms/IPO/GlobalOpt.cpp index e2e707c4d83..dbdea1ecdd7 100644 --- a/llvm/lib/Transforms/IPO/GlobalOpt.cpp +++ b/llvm/lib/Transforms/IPO/GlobalOpt.cpp @@ -278,7 +278,7 @@ static Constant *getAggregateConstantElement(Constant *Agg, Constant *Idx) { if (IdxV < CS->getNumOperands()) return CS->getOperand(IdxV); } else if (ConstantArray *CA = dyn_cast<ConstantArray>(Agg)) { if (IdxV < CA->getNumOperands()) return CA->getOperand(IdxV); - } else if (ConstantPacked *CP = dyn_cast<ConstantPacked>(Agg)) { + } else if (ConstantVector *CP = dyn_cast<ConstantVector>(Agg)) { if (IdxV < CP->getNumOperands()) return CP->getOperand(IdxV); } else if (isa<ConstantAggregateZero>(Agg)) { if (const StructType *STy = dyn_cast<StructType>(Agg->getType())) { @@ -398,7 +398,7 @@ static GlobalVariable *SRAGlobal(GlobalVariable *GV) { unsigned NumElements = 0; if (const ArrayType *ATy = dyn_cast<ArrayType>(STy)) NumElements = ATy->getNumElements(); - else if (const PackedType *PTy = dyn_cast<PackedType>(STy)) + else if (const VectorType *PTy = dyn_cast<VectorType>(STy)) NumElements = PTy->getNumElements(); else assert(0 && "Unknown aggregate sequential type!"); @@ -1346,7 +1346,7 @@ bool GlobalOpt::ProcessInternalGlobal(GlobalVariable *GV, if (Constant *SOVConstant = dyn_cast<Constant>(GS.StoredOnceValue)) if (GV->getType()->getElementType() != Type::Int1Ty && !GV->getType()->getElementType()->isFloatingPoint() && - !isa<PackedType>(GV->getType()->getElementType()) && + !isa<VectorType>(GV->getType()->getElementType()) && !GS.HasPHIUser) { DOUT << " *** SHRINKING TO BOOL: " << *GV; ShrinkGlobalToBoolean(GV, SOVConstant); |