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 ee0303c..465a9bc 100644
--- a/lib/Target/PowerPC/PPCISelPattern.cpp
+++ b/lib/Target/PowerPC/PPCISelPattern.cpp
@@ -1601,11 +1601,11 @@
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));