[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp

Chris Lattner lattner at cs.uiuc.edu
Wed Jan 11 18:01:57 PST 2006



Changes in directory llvm/lib/Target/PowerPC:

PPCISelDAGToDAG.cpp updated: 1.149 -> 1.150
---
Log message:

these cases are autogenerated


---
Diffs of the changes:  (+0 -28)

 PPCISelDAGToDAG.cpp |   28 ----------------------------
 1 files changed, 28 deletions(-)


Index: llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
diff -u llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp:1.149 llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp:1.150
--- llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp:1.149	Wed Jan 11 19:54:15 2006
+++ llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp	Wed Jan 11 20:01:45 2006
@@ -973,34 +973,6 @@
     // 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();
     






More information about the llvm-commits mailing list