summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-02-03 20:13:59 +0000
committerChris Lattner <sabre@nondot.org>2006-02-03 20:13:59 +0000
commitf68fd20286636468cc1588b8f103350070509ed2 (patch)
tree3b5b0aee93c93faf7ccdda0a5b35db603e40e7d9 /llvm/lib/CodeGen
parenta1d312c6ea3ea6756e447ad8a801e2f60e6e0200 (diff)
downloadbcm5719-llvm-f68fd20286636468cc1588b8f103350070509ed2.tar.gz
bcm5719-llvm-f68fd20286636468cc1588b8f103350070509ed2.zip
remove some #ifdef'd out code, which should properly be in the dag combiner anyway.
llvm-svn: 25941
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp30
1 files changed, 0 insertions, 30 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index da84b38634e..88cc853ebea 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/llvm/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<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)));
OpenPOWER on IntegriCloud