aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/ScalarEvolutionExpander.cpp
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2009-01-13 09:18:58 +0000
committerNick Lewycky <nicholas@mxc.ca>2009-01-13 09:18:58 +0000
commit789558db70d9513a017c11c5be30945839fdff1c (patch)
treecfd434dff6168129e6b34ccc95cd8c247ff0fa87 /lib/Analysis/ScalarEvolutionExpander.cpp
parent3ff704fa2b67d6c857142218c5aca3058b6239fc (diff)
Wind SCEV back in time, to Nov 18th. This 'fixes' PR3275, PR3294, PR3295,
PR3296 and PR3302. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62160 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/ScalarEvolutionExpander.cpp')
-rw-r--r--lib/Analysis/ScalarEvolutionExpander.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/Analysis/ScalarEvolutionExpander.cpp b/lib/Analysis/ScalarEvolutionExpander.cpp
index 211f013c25..30df087cef 100644
--- a/lib/Analysis/ScalarEvolutionExpander.cpp
+++ b/lib/Analysis/ScalarEvolutionExpander.cpp
@@ -143,15 +143,6 @@ Value *SCEVExpander::visitUDivExpr(SCEVUDivExpr *S) {
return InsertBinop(Instruction::UDiv, LHS, RHS, InsertPt);
}
-Value *SCEVExpander::visitSDivExpr(SCEVSDivExpr *S) {
- // Do not fold sdiv into ashr, unless you know that LHS is positive. On
- // negative values, it rounds the wrong way.
-
- Value *LHS = expand(S->getLHS());
- Value *RHS = expand(S->getRHS());
- return InsertBinop(Instruction::SDiv, LHS, RHS, InsertPt);
-}
-
Value *SCEVExpander::visitAddRecExpr(SCEVAddRecExpr *S) {
const Type *Ty = S->getType();
const Loop *L = S->getLoop();