Changes in directory llvm/lib/Analysis:
ConstantRange.cpp updated: 1.28 -> 1.29 --- Log message: remove unneeded special cases --- Diffs of the changes: (+0 -7) ConstantRange.cpp | 7 ------- 1 files changed, 7 deletions(-) Index: llvm/lib/Analysis/ConstantRange.cpp diff -u llvm/lib/Analysis/ConstantRange.cpp:1.28 llvm/lib/Analysis/ConstantRange.cpp:1.29 --- llvm/lib/Analysis/ConstantRange.cpp:1.28 Thu Jan 11 22:24:45 2007 +++ llvm/lib/Analysis/ConstantRange.cpp Fri Jan 12 12:23:49 2007 @@ -31,8 +31,6 @@ using namespace llvm; static ConstantInt *getMaxValue(const Type *Ty, bool isSigned = false) { - if (Ty == Type::Int1Ty) - return ConstantInt::getTrue(); if (Ty->isInteger()) { if (isSigned) { // Calculate 011111111111111... @@ -48,8 +46,6 @@ // Static constructor to create the minimum constant for an integral type... static ConstantInt *getMinValue(const Type *Ty, bool isSigned = false) { - if (Ty == Type::Int1Ty) - return ConstantInt::getFalse(); if (Ty->isInteger()) { if (isSigned) { // Calculate 1111111111000000000000 @@ -63,9 +59,6 @@ return 0; } static ConstantInt *Next(ConstantInt *CI) { - if (CI->getType() == Type::Int1Ty) - return ConstantInt::get(Type::Int1Ty, !CI->getZExtValue()); - Constant *Result = ConstantExpr::getAdd(CI, ConstantInt::get(CI->getType(), 1)); return cast<ConstantInt>(Result); _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits