From: Chris Lattner Date: Tue, 4 Apr 2006 06:11:42 +0000 (+0000) Subject: Signed shr by a constant is not the same as sdiv by 2^k X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1f239300d341c0d5d94516f8d0c41cdd31fae54b;p=oota-llvm.git Signed shr by a constant is not the same as sdiv by 2^k git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27395 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/ScalarEvolution.cpp b/lib/Analysis/ScalarEvolution.cpp index f8b4ab9be13..f0848569ddb 100644 --- a/lib/Analysis/ScalarEvolution.cpp +++ b/lib/Analysis/ScalarEvolution.cpp @@ -1374,15 +1374,6 @@ SCEVHandle ScalarEvolutionsImpl::createSCEV(Value *V) { } break; - case Instruction::Shr: - if (ConstantUInt *SA = dyn_cast(I->getOperand(1))) - if (V->getType()->isSigned()) { - Constant *X = ConstantInt::get(V->getType(), 1); - X = ConstantExpr::getShl(X, SA); - return SCEVSDivExpr::get(getSCEV(I->getOperand(0)), getSCEV(X)); - } - break; - case Instruction::Cast: return createNodeForCast(cast(I));