diff options
author | Evan Cheng <evan.cheng@apple.com> | 2005-12-10 00:48:20 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2005-12-10 00:48:20 +0000 |
commit | b51a059b2c47b91a66230ce53410303bacb79a69 (patch) | |
tree | f389ac8503f59076ecced0aeeb78fda86b03b722 /lib/Target/X86/X86ISelDAGToDAG.cpp | |
parent | 7038daf34272d58da160989dd97f0bce39f5b0b1 (diff) |
* Added X86 store patterns.
* Added X86 dec patterns.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24654 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86ISelDAGToDAG.cpp')
-rw-r--r-- | lib/Target/X86/X86ISelDAGToDAG.cpp | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/lib/Target/X86/X86ISelDAGToDAG.cpp b/lib/Target/X86/X86ISelDAGToDAG.cpp index 57baee2c38..6c32308e07 100644 --- a/lib/Target/X86/X86ISelDAGToDAG.cpp +++ b/lib/Target/X86/X86ISelDAGToDAG.cpp @@ -387,39 +387,6 @@ SDOperand X86DAGToDAGISel::Select(SDOperand Op) { getI16Imm(X86Lowering.getBytesToPopOnReturn()), Chain); } - - case ISD::STORE: { - SDOperand Chain = Select(N->getOperand(0)); // Token chain. - SDOperand Tmp1 = Select(N->getOperand(1)); - Opc = 0; - if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(N->getOperand(1))) { - switch (CN->getValueType(0)) { - default: assert(0 && "Invalid type for operation!"); - case MVT::i1: - case MVT::i8: Opc = X86::MOV8mi; break; - case MVT::i16: Opc = X86::MOV16mi; break; - case MVT::i32: Opc = X86::MOV32mi; break; - } - } - - if (!Opc) { - switch (N->getOperand(1).getValueType()) { - default: assert(0 && "Cannot store this type!"); - case MVT::i1: - case MVT::i8: Opc = X86::MOV8mr; break; - case MVT::i16: Opc = X86::MOV16mr; break; - case MVT::i32: Opc = X86::MOV32mr; break; - case MVT::f32: Opc = X86::MOVSSmr; break; - case MVT::f64: Opc = X86::FST64m; break; - } - } - - SDOperand Base, Scale, Index, Disp; - SelectAddr(N->getOperand(2), Base, Scale, Index, Disp); - return CurDAG->SelectNodeTo(N, Opc, MVT::Other, - Base, Scale, Index, Disp, Tmp1, Chain) - .getValue(Op.ResNo); - } } return SelectCode(Op); |