From 1f239300d341c0d5d94516f8d0c41cdd31fae54b Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 4 Apr 2006 06:11:42 +0000 Subject: [PATCH] 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 --- lib/Analysis/ScalarEvolution.cpp | 9 --------- 1 file changed, 9 deletions(-) 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)); -- 2.34.1