From: Zhou Sheng Date: Sat, 31 Mar 2007 02:50:26 +0000 (+0000) Subject: Delete dead code. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1c5d163634b772d829ad37961e383d015b75a5ce;p=oota-llvm.git Delete dead code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35525 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index 1d172ced525..e0fdc5fbaea 100644 --- a/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/lib/Transforms/Scalar/InstructionCombining.cpp @@ -4777,7 +4777,6 @@ Instruction *InstCombiner::visitICmpInst(ICmpInst &I) { // of the bits shifted in could be tested after the mask. uint32_t TyBits = Ty->getPrimitiveSizeInBits(); int ShAmtVal = TyBits - ShAmt->getLimitedValue(TyBits); - if (ShAmtVal < 0) ShAmtVal = 0; // Out of range shift. uint32_t BitWidth = AndTy->getPrimitiveSizeInBits(); if ((APInt::getHighBitsSet(BitWidth, BitWidth-ShAmtVal) &