diff options
| author | Reid Spencer <rspencer@reidspencer.com> | 2007-02-15 02:26:10 +0000 |
|---|---|---|
| committer | Reid Spencer <rspencer@reidspencer.com> | 2007-02-15 02:26:10 +0000 |
| commit | d84d35ba70296aca01d3c48ab9088b0515619fd9 (patch) | |
| tree | 1badc3977131947db9d60139549cbdb3898ffb09 /llvm/lib/Analysis/ConstantFolding.cpp | |
| parent | dad84a7c0203636b30f98d6d2315bf5af0ec6046 (diff) | |
| download | bcm5719-llvm-d84d35ba70296aca01d3c48ab9088b0515619fd9.tar.gz bcm5719-llvm-d84d35ba70296aca01d3c48ab9088b0515619fd9.zip | |
For PR1195:
Rename PackedType -> VectorType, ConstantPacked -> ConstantVector, and
PackedTyID -> VectorTyID. No functional changes.
llvm-svn: 34293
Diffstat (limited to 'llvm/lib/Analysis/ConstantFolding.cpp')
| -rw-r--r-- | llvm/lib/Analysis/ConstantFolding.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/ConstantFolding.cpp b/llvm/lib/Analysis/ConstantFolding.cpp index 6fd8ff8b563..01aedda6353 100644 --- a/llvm/lib/Analysis/ConstantFolding.cpp +++ b/llvm/lib/Analysis/ConstantFolding.cpp @@ -283,10 +283,10 @@ Constant *llvm::ConstantFoldLoadThroughGEPConstantExpr(Constant *C, C = UndefValue::get(ATy->getElementType()); else return 0; - } else if (const PackedType *PTy = dyn_cast<PackedType>(*I)) { + } else if (const VectorType *PTy = dyn_cast<VectorType>(*I)) { if (CI->getZExtValue() >= PTy->getNumElements()) return 0; - if (ConstantPacked *CP = dyn_cast<ConstantPacked>(C)) + if (ConstantVector *CP = dyn_cast<ConstantVector>(C)) C = CP->getOperand(CI->getZExtValue()); else if (isa<ConstantAggregateZero>(C)) C = Constant::getNullValue(PTy->getElementType()); |

