[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp
Nate Begeman
natebegeman at mac.com
Tue Apr 5 20:36:46 PDT 2005
Changes in directory llvm/lib/Target/PowerPC:
PPC32ISelPattern.cpp updated: 1.47 -> 1.48
---
Log message:
Turn off the div -> mul optimization until it works correctly 100% of the
time.
---
Diffs of the changes: (+5 -5)
PPC32ISelPattern.cpp | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
Index: llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp
diff -u llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp:1.47 llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp:1.48
--- llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp:1.47 Tue Apr 5 19:25:27 2005
+++ llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp Tue Apr 5 22:36:33 2005
@@ -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));
More information about the llvm-commits
mailing list