Changes in directory llvm/lib/Transforms/Scalar:
InstructionCombining.cpp updated: 1.651 -> 1.652 --- Log message: Fix a bug in function ComputeMaskedBits(). --- Diffs of the changes: (+2 -2) InstructionCombining.cpp | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) Index: llvm/lib/Transforms/Scalar/InstructionCombining.cpp diff -u llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.651 llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.652 --- llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.651 Wed Mar 7 23:42:00 2007 +++ llvm/lib/Transforms/Scalar/InstructionCombining.cpp Thu Mar 8 09:15:18 2007 @@ -677,7 +677,7 @@ const IntegerType *SrcTy = cast<IntegerType>(I->getOperand(0)->getType()); APInt NewBits(APInt::getAllOnesValue(BitWidth).shl(SrcTy->getBitWidth())); - Mask &= SrcTy->getMask().zext(BitWidth); + Mask &= SrcTy->getMask().zextOrTrunc(BitWidth); ComputeMaskedBits(I->getOperand(0), Mask, KnownZero, KnownOne, Depth+1); assert((KnownZero & KnownOne) == 0 && "Bits known to be one AND zero?"); // The top bits are known to be zero. @@ -689,7 +689,7 @@ const IntegerType *SrcTy = cast<IntegerType>(I->getOperand(0)->getType()); APInt NewBits(APInt::getAllOnesValue(BitWidth).shl(SrcTy->getBitWidth())); - Mask &= SrcTy->getMask().zext(BitWidth); + Mask &= SrcTy->getMask().zextOrTrunc(BitWidth); ComputeMaskedBits(I->getOperand(0), Mask, KnownZero, KnownOne, Depth+1); assert((KnownZero & KnownOne) == 0 && "Bits known to be one AND zero?"); _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits