Changes in directory llvm/include/llvm/Analysis:
ScalarEvolutionExpander.h updated: 1.10 -> 1.11 --- Log message: Update code to eliminate calls to isInteger, calling isIntegral instead. --- Diffs of the changes: (+3 -3) ScalarEvolutionExpander.h | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) Index: llvm/include/llvm/Analysis/ScalarEvolutionExpander.h diff -u llvm/include/llvm/Analysis/ScalarEvolutionExpander.h:1.10 llvm/include/llvm/Analysis/ScalarEvolutionExpander.h:1.11 --- llvm/include/llvm/Analysis/ScalarEvolutionExpander.h:1.10 Wed Dec 13 02:06:42 2006 +++ llvm/include/llvm/Analysis/ScalarEvolutionExpander.h Sun Jan 14 19:58:56 2007 @@ -60,7 +60,7 @@ /// loop (inserting one if there is none). A canonical induction variable /// starts at zero and steps by one on each iteration. Value *getOrInsertCanonicalInductionVariable(const Loop *L, const Type *Ty){ - assert((Ty->isInteger() || Ty->isFloatingPoint()) && + assert((Ty->isIntegral() || Ty->isFloatingPoint()) && "Can only insert integer or floating point induction variables!"); SCEVHandle H = SCEVAddRecExpr::get(SCEVUnknown::getIntegerSCEV(0, Ty), SCEVUnknown::getIntegerSCEV(1, Ty), L); @@ -106,9 +106,9 @@ Value *expandInTy(SCEV *S, const Type *Ty) { Value *V = expand(S); if (Ty && V->getType() != Ty) { - if (isa<PointerType>(Ty) && V->getType()->isInteger()) + if (isa<PointerType>(Ty) && V->getType()->isIntegral()) return InsertCastOfTo(Instruction::IntToPtr, V, Ty); - else if (Ty->isInteger() && isa<PointerType>(V->getType())) + else if (Ty->isIntegral() && isa<PointerType>(V->getType())) return InsertCastOfTo(Instruction::PtrToInt, V, Ty); else if (Ty->getPrimitiveSizeInBits() == V->getType()->getPrimitiveSizeInBits()) _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits