[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
Chris Lattner
lattner at cs.uiuc.edu
Fri Feb 3 12:14:11 PST 2006
Changes in directory llvm/lib/CodeGen/SelectionDAG:
SelectionDAGISel.cpp updated: 1.146 -> 1.147
---
Log message:
remove some #ifdef'd out code, which should properly be in the dag combiner anyway.
---
Diffs of the changes: (+0 -30)
SelectionDAGISel.cpp | 30 ------------------------------
1 files changed, 30 deletions(-)
Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.146 llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.147
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.146 Wed Feb 1 18:25:23 2006
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp Fri Feb 3 14:13:59 2006
@@ -1504,36 +1504,6 @@
}
void SelectionDAGLowering::visitMemIntrinsic(CallInst &I, unsigned Op) {
-#if 0
- // If the size of the cpy/move/set is constant (known)
- if (ConstantUInt* op3 = dyn_cast<ConstantUInt>(I.getOperand(3))) {
- uint64_t size = op3->getValue();
- switch (Op) {
- case ISD::MEMSET:
- if (size <= TLI.getMaxStoresPerMemSet()) {
- if (ConstantUInt* op4 = dyn_cast<ConstantUInt>(I.getOperand(4))) {
- uint64_t TySize = TLI.getTargetData().getTypeSize(Ty);
- uint64_t align = op4.getValue();
- while (size > align) {
- size -=align;
- }
- Value *SrcV = I.getOperand(0);
- SDOperand Src = getValue(SrcV);
- SDOperand Ptr = getValue(I.getOperand(1));
- DAG.setRoot(DAG.getNode(ISD::STORE, MVT::Other, getRoot(), Src, Ptr,
- DAG.getSrcValue(I.getOperand(1))));
- }
- break;
- }
- break; // don't do this optimization, use a normal memset
- case ISD::MEMMOVE:
- case ISD::MEMCPY:
- break; // FIXME: not implemented yet
- }
- }
-#endif
-
- // Non-optimized version
std::vector<SDOperand> Ops;
Ops.push_back(getRoot());
Ops.push_back(getValue(I.getOperand(1)));
More information about the llvm-commits
mailing list