X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FAnalysis%2FScalarEvolutionExpander.cpp;h=30df087cef3e8bf42f1af09477366fd8cbf76658;hb=ef4cfc749a61d0d0252196c957697436ba7ec068;hp=211f013c25c49f8577521a010eafc27e795ae21a;hpb=48dd644109d97a76288f0b5045f6aa6a3c075732;p=oota-llvm.git diff --git a/lib/Analysis/ScalarEvolutionExpander.cpp b/lib/Analysis/ScalarEvolutionExpander.cpp index 211f013c25c..30df087cef3 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();