summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
diff options
context:
space:
mode:
authorZhou Sheng <zhousheng00@gmail.com>2007-03-31 02:50:26 +0000
committerZhou Sheng <zhousheng00@gmail.com>2007-03-31 02:50:26 +0000
commit82c42284f49de4110255525bee363905f2c20544 (patch)
treefb07c52ab541869621fa48ded440da828dc3d39f /llvm/lib/Transforms/Scalar/InstructionCombining.cpp
parent4f16402e0d0c7852f11d0a4436e23dc5feda7ff7 (diff)
downloadbcm5719-llvm-82c42284f49de4110255525bee363905f2c20544.tar.gz
bcm5719-llvm-82c42284f49de4110255525bee363905f2c20544.zip
Delete dead code.
llvm-svn: 35525
Diffstat (limited to 'llvm/lib/Transforms/Scalar/InstructionCombining.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/InstructionCombining.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
index 1d172ced525..e0fdc5fbaea 100644
--- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/llvm/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) &
OpenPOWER on IntegriCloud