diff options
| author | Roman Divacky <rdivacky@FreeBSD.org> | 2010-03-03 17:27:15 +0000 | 
|---|---|---|
| committer | Roman Divacky <rdivacky@FreeBSD.org> | 2010-03-03 17:27:15 +0000 | 
| commit | 67a71b3184ce20a901e874d0ee25e01397dd87ef (patch) | |
| tree | 836a05cff50ca46176117b86029f061fa4db54f0 /lib/Analysis/InlineCost.cpp | |
| parent | 6fe5c7aa327e188b7176daa5595bbf075a6b94df (diff) | |
Notes
Diffstat (limited to 'lib/Analysis/InlineCost.cpp')
| -rw-r--r-- | lib/Analysis/InlineCost.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/lib/Analysis/InlineCost.cpp b/lib/Analysis/InlineCost.cpp index 972d0349fd06..ca50a1721e04 100644 --- a/lib/Analysis/InlineCost.cpp +++ b/lib/Analysis/InlineCost.cpp @@ -84,7 +84,7 @@ unsigned InlineCostAnalyzer::FunctionInfo::  //  unsigned InlineCostAnalyzer::FunctionInfo::           CountCodeReductionForAlloca(Value *V) { -  if (!isa<PointerType>(V->getType())) return 0;  // Not a pointer +  if (!V->getType()->isPointerTy()) return 0;  // Not a pointer    unsigned Reduction = 0;    for (Value::use_iterator UI = V->use_begin(), E = V->use_end(); UI != E;++UI){      Instruction *I = cast<Instruction>(*UI); @@ -175,7 +175,7 @@ void CodeMetrics::analyzeBasicBlock(const BasicBlock *BB) {          this->usesDynamicAlloca = true;      } -    if (isa<ExtractElementInst>(II) || isa<VectorType>(II->getType())) +    if (isa<ExtractElementInst>(II) || II->getType()->isVectorTy())        ++NumVectorInsts;       if (const CastInst *CI = dyn_cast<CastInst>(II)) { | 
