summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit52348300a4e89da5e070e59971228cd85dbedbe0 (patch)
tree5d0a6413d077df6046b89be1f2b67579c384943b /llvm/lib/Analysis/ScalarEvolutionExpander.cpp
parent6e66d0a6a1d31a5ce56e4672abf1923315eed864 (diff)
downloadbcm5719-llvm-52348300a4e89da5e070e59971228cd85dbedbe0.tar.gz
bcm5719-llvm-52348300a4e89da5e070e59971228cd85dbedbe0.zip
Wind SCEV back in time, to Nov 18th. This 'fixes' PR3275, PR3294, PR3295,
PR3296 and PR3302. llvm-svn: 62160
Diffstat (limited to 'llvm/lib/Analysis/ScalarEvolutionExpander.cpp')
-rw-r--r--llvm/lib/Analysis/ScalarEvolutionExpander.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/llvm/lib/Analysis/ScalarEvolutionExpander.cpp b/llvm/lib/Analysis/ScalarEvolutionExpander.cpp
index 211f013c25c..30df087cef3 100644
--- a/llvm/lib/Analysis/ScalarEvolutionExpander.cpp
+++ b/llvm/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();
OpenPOWER on IntegriCloud