Add a new function, ReplaceAllUsesOfValuesWith, which handles bulk
[oota-llvm.git] / lib / Target / CellSPU / SPUISelDAGToDAG.cpp
index a672b132ce58039f305779ac81641fb0f06e7651..0e935ac35d2534a3a244f7c35cea59a511f5421a 100644 (file)
@@ -587,7 +587,7 @@ SPUDAGToDAGISel::Select(SDOperand Op) {
   MVT OpVT = Op.getValueType();
   SDOperand Ops[8];
 
-  if (Opc >= ISD::BUILTIN_OP_END && Opc < SPUISD::FIRST_NUMBER) {
+  if (N->isMachineOpcode()) {
     return NULL;   // Already selected.
   } else if (Opc == ISD::FrameIndex) {
     // Selects to (add $sp, FI * stackSlotSize)