summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/ScalarEvolution.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-04-04 06:11:42 +0000
committerChris Lattner <sabre@nondot.org>2006-04-04 06:11:42 +0000
commit6b2c9748c3ff54a1fe779cd6394db8eb9bf0c0b1 (patch)
tree6b0cab9d4615d5f4b6a3af264032c4c5cc0de425 /llvm/lib/Analysis/ScalarEvolution.cpp
parente91e3bd874c04d555c1639f14f79318282e0e0ef (diff)
downloadbcm5719-llvm-6b2c9748c3ff54a1fe779cd6394db8eb9bf0c0b1.tar.gz
bcm5719-llvm-6b2c9748c3ff54a1fe779cd6394db8eb9bf0c0b1.zip
Signed shr by a constant is not the same as sdiv by 2^k
llvm-svn: 27395
Diffstat (limited to 'llvm/lib/Analysis/ScalarEvolution.cpp')
-rw-r--r--llvm/lib/Analysis/ScalarEvolution.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp
index f8b4ab9be13..f0848569ddb 100644
--- a/llvm/lib/Analysis/ScalarEvolution.cpp
+++ b/llvm/lib/Analysis/ScalarEvolution.cpp
@@ -1374,15 +1374,6 @@ SCEVHandle ScalarEvolutionsImpl::createSCEV(Value *V) {
}
break;
- case Instruction::Shr:
- if (ConstantUInt *SA = dyn_cast<ConstantUInt>(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<CastInst>(I));
OpenPOWER on IntegriCloud