From 7632e2beb4f0eacc49d580cbf23c89f24ad07ce9 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 3 Feb 2006 20:13:59 +0000 Subject: [PATCH] remove some #ifdef'd out code, which should properly be in the dag combiner anyway. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25941 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 30 ------------------- 1 file changed, 30 deletions(-) diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index da84b38634e..88cc853ebea 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -1504,36 +1504,6 @@ void SelectionDAGLowering::visitFrameReturnAddress(CallInst &I, bool isFrame) { } 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(I.getOperand(3))) { - uint64_t size = op3->getValue(); - switch (Op) { - case ISD::MEMSET: - if (size <= TLI.getMaxStoresPerMemSet()) { - if (ConstantUInt* op4 = dyn_cast(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 Ops; Ops.push_back(getRoot()); Ops.push_back(getValue(I.getOperand(1))); -- 2.34.1