Turn off the div -> mul optimization until it works correctly 100% of the
authorNate Begeman <natebegeman@mac.com>
Wed, 6 Apr 2005 03:36:33 +0000 (03:36 +0000)
committerNate Begeman <natebegeman@mac.com>
Wed, 6 Apr 2005 03:36:33 +0000 (03:36 +0000)
time.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21105 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCISelPattern.cpp

index ee0303c21861021ebb25ff02f528cb1a3b9186f7..465a9bccf1dafdc8d29099b379c2cb5ae9b759bf 100644 (file)
@@ -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));