diff options
author | Nate Begeman <natebegeman@mac.com> | 2005-04-06 03:36:33 +0000 |
---|---|---|
committer | Nate Begeman <natebegeman@mac.com> | 2005-04-06 03:36:33 +0000 |
commit | 8f52980f032da74b72425fd23d4639c232a85e28 (patch) | |
tree | a5bbf370aa0c05f1dc824214a74b6529737f5b7b /lib/Target/PowerPC/PPCISelPattern.cpp | |
parent | 815d6dac1ecc6ad661cebb308f9c06583fcd3cf0 (diff) |
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
Diffstat (limited to 'lib/Target/PowerPC/PPCISelPattern.cpp')
-rw-r--r-- | lib/Target/PowerPC/PPCISelPattern.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/Target/PowerPC/PPCISelPattern.cpp b/lib/Target/PowerPC/PPCISelPattern.cpp index ee0303c218..465a9bccf1 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)); |