Changes in directory llvm/lib/Transforms/IPO:
GlobalOpt.cpp updated: 1.97 -> 1.98 --- Log message: For PR1195: http://llvm.org/PR1195 : Rename PackedType -> VectorType, ConstantPacked -> ConstantVector, and PackedTyID -> VectorTyID. No functional changes. --- Diffs of the changes: (+3 -3) GlobalOpt.cpp | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) Index: llvm/lib/Transforms/IPO/GlobalOpt.cpp diff -u llvm/lib/Transforms/IPO/GlobalOpt.cpp:1.97 llvm/lib/Transforms/IPO/GlobalOpt.cpp:1.98 --- llvm/lib/Transforms/IPO/GlobalOpt.cpp:1.97 Mon Feb 12 16:56:41 2007 +++ llvm/lib/Transforms/IPO/GlobalOpt.cpp Wed Feb 14 20:26:10 2007 @@ -278,7 +278,7 @@ 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 @@ 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 @@ 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); _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits