diff options
| author | Chris Lattner <sabre@nondot.org> | 2006-01-12 02:01:45 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2006-01-12 02:01:45 +0000 |
| commit | 1014b38404b150fe3207ba589680d696f8f9bd2c (patch) | |
| tree | ca0abd08ed04229f8cc71bc790828f51432c3c3d /llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp | |
| parent | 44416f92f1fc73311051f3930610111bb8bb3ee5 (diff) | |
| download | bcm5719-llvm-1014b38404b150fe3207ba589680d696f8f9bd2c.tar.gz bcm5719-llvm-1014b38404b150fe3207ba589680d696f8f9bd2c.zip | |
these cases are autogenerated
llvm-svn: 25238
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp')
| -rw-r--r-- | llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp b/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp index 78b13e8c606..2d74a3259aa 100644 --- a/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp +++ b/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp @@ -973,34 +973,6 @@ SDOperand PPCDAGToDAGISel::Select(SDOperand Op) { // Other cases are autogenerated. break; } - case ISD::FNEG: { - SDOperand Val = Select(N->getOperand(0)); - MVT::ValueType Ty = N->getValueType(0); - if (N->getOperand(0).Val->hasOneUse()) { - unsigned Opc; - switch (Val.isTargetOpcode() ? Val.getTargetOpcode() : 0) { - default: Opc = 0; break; - case PPC::FABSS: Opc = PPC::FNABSS; break; - case PPC::FABSD: Opc = PPC::FNABSD; break; - case PPC::FMADD: Opc = PPC::FNMADD; break; - case PPC::FMADDS: Opc = PPC::FNMADDS; break; - case PPC::FMSUB: Opc = PPC::FNMSUB; break; - case PPC::FMSUBS: Opc = PPC::FNMSUBS; break; - } - // If we inverted the opcode, then emit the new instruction with the - // inverted opcode and the original instruction's operands. Otherwise, - // fall through and generate a fneg instruction. - if (Opc) { - if (Opc == PPC::FNABSS || Opc == PPC::FNABSD) - return CurDAG->SelectNodeTo(N, Opc, Ty, Val.getOperand(0)); - else - return CurDAG->SelectNodeTo(N, Opc, Ty, Val.getOperand(0), - Val.getOperand(1), Val.getOperand(2)); - } - } - // Other cases are autogenerated. - break; - } case ISD::SELECT_CC: { ISD::CondCode CC = cast<CondCodeSDNode>(N->getOperand(4))->get(); |

