From: Nate Begeman Date: Wed, 6 Apr 2005 03:36:33 +0000 (+0000) Subject: Turn off the div -> mul optimization until it works correctly 100% of the X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=8f52980f032da74b72425fd23d4639c232a85e28;p=oota-llvm.git Turn off the div -> mul optimization until it works correctly 100% of the time. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21105 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/PowerPC/PPCISelPattern.cpp b/lib/Target/PowerPC/PPCISelPattern.cpp index ee0303c2186..465a9bccf1d 100644 --- a/lib/Target/PowerPC/PPCISelPattern.cpp +++ b/lib/Target/PowerPC/PPCISelPattern.cpp @@ -1601,11 +1601,11 @@ unsigned ISel::SelectExpr(SDOperand N) { return Result; // If this is a divide by constant, we can emit code using some magic // constants to implement it as a multiply instead. - case 4: - if (opcode == ISD::SDIV) - return SelectExpr(BuildSDIVSequence(N)); - else - return SelectExpr(BuildUDIVSequence(N)); + //case 4: + // if (opcode == ISD::SDIV) + // return SelectExpr(BuildSDIVSequence(N)); + // else + // return SelectExpr(BuildUDIVSequence(N)); } Tmp1 = SelectExpr(N.getOperand(0)); Tmp2 = SelectExpr(N.getOperand(1));